Skip to content

Commit f5cdc46

Browse files
committed
Add default case for when static methods do not matched known ones.
Though, I'm not exactly sure why we are doing this.
1 parent 8e6bc51 commit f5cdc46

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,9 @@ private void inferInitialOrdering() throws IOException, CoreException, ClassHier
583583
else
584584
this.setInitialOrdering(Ordering.ORDERED);
585585
break;
586+
default:
587+
throw new IllegalStateException(
588+
"Unhandled expression type qualified name: " + expressionTypeQualifiedName);
586589
}
587590
} else { // instance method.
588591
int valueNumber = getUseValueNumberForCreation();

0 commit comments

Comments
 (0)