Skip to content

Commit b0bc853

Browse files
committed
We should return immediately if there are no entry points.
1 parent 705d7ca commit b0bc853

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,10 @@ protected Collection<Entrypoint> buildCallGraph(EclipseProjectAnalysisEngine<Ins
202202
addImplicitEntryPoints(entryPoints, jUnitEntryPoints);
203203
}
204204

205-
if (entryPoints.isEmpty())
205+
if (entryPoints.isEmpty()) {
206206
LOGGER.warning(() -> "Project: " + engine.getProject().getElementName() + " has no entry points.");
207+
return entryPoints;
208+
}
207209

208210
// set options.
209211
AnalysisOptions options = engine.getDefaultOptions(entryPoints);

0 commit comments

Comments
 (0)