File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -860,10 +860,10 @@ protected void unorder(CompilationUnitRewrite rewrite) {
860
860
ASTRewrite astRewrite = rewrite .getASTRewrite ();
861
861
MethodInvocation termOp = findTerminalOperation (creation );
862
862
Expression expression = termOp .getExpression ();
863
-
863
+
864
864
boolean done = false ;
865
865
boolean hasDistinct = false ;
866
-
866
+
867
867
while (expression != null && !done )
868
868
if (expression .getNodeType () == ASTNode .METHOD_INVOCATION ) {
869
869
MethodInvocation inv = (MethodInvocation ) expression ;
@@ -879,14 +879,14 @@ protected void unorder(CompilationUnitRewrite rewrite) {
879
879
astRewrite .replace (inv .getExpression (), newMethodInvocation , null );
880
880
hasDistinct = true ;
881
881
}
882
-
882
+
883
883
expression = inv .getExpression ();
884
884
} else
885
885
done = true ;
886
-
886
+
887
887
if (!hasDistinct ) {
888
888
AST ast = creation .getAST ();
889
-
889
+
890
890
MethodInvocation newMethodInvocation = ast .newMethodInvocation ();
891
891
newMethodInvocation .setName (ast .newSimpleName ("unordered" ));
892
892
MethodInvocation exprCopy = (MethodInvocation ) ASTNode .copySubtree (ast , termOp .getExpression ());
You can’t perform that action at this time.
0 commit comments