Skip to content

Commit e352a39

Browse files
committed
We should be working around #80.
As such, we don't need to count this against the tool.
1 parent b0bc853 commit e352a39

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,18 +1189,11 @@ private void fillInstanceToStreamMap(Set<Stream> streamSet, EclipseProjectAnalys
11891189
InstanceKey instanceKey = null;
11901190
try {
11911191
instanceKey = stream.getInstanceKey(this.trackedInstances, engine);
1192-
} catch (InstanceKeyNotFoundException e) { // workaround for #80.
1193-
if (stream.getCreation().toString().contains(ARRAYS_STREAM_CREATION_METHOD_NAME)) {
1194-
String msg = "Encountered possible unhandled case (#80) while processing: " + stream.getCreation();
1195-
LOGGER.log(Level.WARNING, msg, e);
1196-
stream.addStatusEntry(PreconditionFailure.CURRENTLY_NOT_HANDLED, msg);
1197-
} else {
1198-
LOGGER.log(Level.WARNING, "Encountered unreachable code while processing: " + stream.getCreation(),
1199-
e);
1200-
stream.addStatusEntry(PreconditionFailure.STREAM_CODE_NOT_REACHABLE,
1201-
"Either pivital code isn't reachable for stream: " + stream.getCreation()
1202-
+ " or entry points are misconfigured.");
1203-
}
1192+
} catch (InstanceKeyNotFoundException e) {
1193+
LOGGER.log(Level.WARNING, "Encountered unreachable code while processing: " + stream.getCreation(), e);
1194+
stream.addStatusEntry(PreconditionFailure.STREAM_CODE_NOT_REACHABLE,
1195+
"Either pivital code isn't reachable for stream: " + stream.getCreation()
1196+
+ " or entry points are misconfigured.");
12041197
++skippedStreams;
12051198
continue; // next stream.
12061199
} catch (UnhandledCaseException e) {

0 commit comments

Comments
 (0)