Skip to content

Commit dadcacf

Browse files
committed
Ignore all implicit entry points if the file is present.
1 parent da2030e commit dadcacf

File tree

1 file changed

+19
-19
lines changed
  • edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis

1 file changed

+19
-19
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/StreamAnalyzer.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -319,31 +319,31 @@ protected Collection<Entrypoint> buildCallGraph(EclipseProjectAnalysisEngine<Ins
319319
// find explicit entry points.
320320
entryPoints = Util.findEntryPoints(engine.getClassHierarchy());
321321
entryPoints.forEach(ep -> LOGGER.info(() -> "Adding explicit entry point: " + ep));
322-
}
323322

324-
if (this.shouldFindImplicitEntryPoints()) {
325-
// also find implicit entry points.
326-
Iterable<Entrypoint> mainEntrypoints = makeMainEntrypoints(engine.getClassHierarchy().getScope(),
327-
engine.getClassHierarchy());
323+
if (this.shouldFindImplicitEntryPoints()) {
324+
// also find implicit entry points.
325+
Iterable<Entrypoint> mainEntrypoints = makeMainEntrypoints(engine.getClassHierarchy().getScope(),
326+
engine.getClassHierarchy());
328327

329-
// add them as well.
330-
addImplicitEntryPoints(entryPoints, mainEntrypoints);
331-
}
328+
// add them as well.
329+
addImplicitEntryPoints(entryPoints, mainEntrypoints);
330+
}
332331

333-
if (this.shouldFindImplicitTestEntryPoints()) {
334-
// try to find test entry points.
335-
Iterable<Entrypoint> jUnitEntryPoints = JUnitEntryPoints.make(engine.getClassHierarchy());
332+
if (this.shouldFindImplicitTestEntryPoints()) {
333+
// try to find test entry points.
334+
Iterable<Entrypoint> jUnitEntryPoints = JUnitEntryPoints.make(engine.getClassHierarchy());
336335

337-
// add them as well.
338-
addImplicitEntryPoints(entryPoints, jUnitEntryPoints);
339-
}
336+
// add them as well.
337+
addImplicitEntryPoints(entryPoints, jUnitEntryPoints);
338+
}
340339

341-
if (this.shouldFindImplicitBenchmarkEntryPoints()) {
342-
// try to find benchmark entry points.
343-
Set<Entrypoint> benchmarkEntryPoints = Util.findBenchmarkEntryPoints(engine.getClassHierarchy());
340+
if (this.shouldFindImplicitBenchmarkEntryPoints()) {
341+
// try to find benchmark entry points.
342+
Set<Entrypoint> benchmarkEntryPoints = Util.findBenchmarkEntryPoints(engine.getClassHierarchy());
344343

345-
// add them as well.
346-
addImplicitEntryPoints(entryPoints, benchmarkEntryPoints);
344+
// add them as well.
345+
addImplicitEntryPoints(entryPoints, benchmarkEntryPoints);
346+
}
347347
}
348348

349349
if (entryPoints.isEmpty()) {

0 commit comments

Comments
 (0)