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) {
860860 ASTRewrite astRewrite = rewrite .getASTRewrite ();
861861 MethodInvocation termOp = findTerminalOperation (creation );
862862 Expression expression = termOp .getExpression ();
863-
863+
864864 boolean done = false ;
865865 boolean hasDistinct = false ;
866-
866+
867867 while (expression != null && !done )
868868 if (expression .getNodeType () == ASTNode .METHOD_INVOCATION ) {
869869 MethodInvocation inv = (MethodInvocation ) expression ;
@@ -879,14 +879,14 @@ protected void unorder(CompilationUnitRewrite rewrite) {
879879 astRewrite .replace (inv .getExpression (), newMethodInvocation , null );
880880 hasDistinct = true ;
881881 }
882-
882+
883883 expression = inv .getExpression ();
884884 } else
885885 done = true ;
886-
886+
887887 if (!hasDistinct ) {
888888 AST ast = creation .getAST ();
889-
889+
890890 MethodInvocation newMethodInvocation = ast .newMethodInvocation ();
891891 newMethodInvocation .setName (ast .newSimpleName ("unordered" ));
892892 MethodInvocation exprCopy = (MethodInvocation ) ASTNode .copySubtree (ast , termOp .getExpression ());
You can’t perform that action at this time.
0 commit comments