Skip to content

Commit eb19e2a

Browse files
committed
Clean up.
1 parent dfdd920 commit eb19e2a

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)