1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-26 16:45:21 +00:00

Format code.

This commit is contained in:
2017-08-04 14:29:24 -07:00
parent 0058ec9c71
commit c541eaab97
6 changed files with 152 additions and 152 deletions

View File

@@ -62,15 +62,15 @@ public class FunctionNode extends TreeNode {
@Override
public <T> T reduce(Reducer<T> reducer) {
if(Thread.currentThread().isInterrupted())
if (Thread.currentThread().isInterrupted())
return null;
Object[] reducedChildren = new Object[children.size()];
for (int i = 0; i < reducedChildren.length; i++) {
reducedChildren[i] = children.get(i).reduce(reducer);
if (Thread.currentThread().isInterrupted()||reducedChildren[i] == null) return null;
if (Thread.currentThread().isInterrupted() || reducedChildren[i] == null) return null;
}
T a = reducer.reduceNode(this, reducedChildren);
if(Thread.currentThread().isInterrupted())
if (Thread.currentThread().isInterrupted())
return null;
return a;
}