Polish whitespace

This commit is contained in:
Phillip Webb 2012-11-21 22:52:11 -08:00
parent c5f391550c
commit d9bd2e19a2
2 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,7 @@ public class OperatorNot extends SpelNodeImpl { // Not is a unary operator so do
public OperatorNot(int pos, SpelNodeImpl operand) { public OperatorNot(int pos, SpelNodeImpl operand) {
super(pos, operand); super(pos, operand);
} }
@Override @Override
public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException { public BooleanTypedValue getValueInternal(ExpressionState state) throws EvaluationException {
try { try {

View File

@ -35,11 +35,11 @@ import org.springframework.util.Assert;
public abstract class SpelNodeImpl implements SpelNode { public abstract class SpelNodeImpl implements SpelNode {
private static SpelNodeImpl[] NO_CHILDREN = new SpelNodeImpl[0]; private static SpelNodeImpl[] NO_CHILDREN = new SpelNodeImpl[0];
protected int pos; // start = top 16bits, end = bottom 16bits protected int pos; // start = top 16bits, end = bottom 16bits
protected SpelNodeImpl[] children = SpelNodeImpl.NO_CHILDREN; protected SpelNodeImpl[] children = SpelNodeImpl.NO_CHILDREN;
private SpelNodeImpl parent; private SpelNodeImpl parent;
public SpelNodeImpl(int pos, SpelNodeImpl... operands) { public SpelNodeImpl(int pos, SpelNodeImpl... operands) {
this.pos = pos; this.pos = pos;
// pos combines start and end so can never be zero because tokens cannot be zero length // pos combines start and end so can never be zero because tokens cannot be zero length
@ -51,7 +51,7 @@ public abstract class SpelNodeImpl implements SpelNode {
} }
} }
} }
protected SpelNodeImpl getPreviousChild() { protected SpelNodeImpl getPreviousChild() {
SpelNodeImpl result = null; SpelNodeImpl result = null;
if (parent != null) { if (parent != null) {
@ -62,7 +62,7 @@ public abstract class SpelNodeImpl implements SpelNode {
} }
return result; return result;
} }
/** /**
* @return true if the next child is one of the specified classes * @return true if the next child is one of the specified classes
*/ */
@ -96,7 +96,7 @@ public abstract class SpelNodeImpl implements SpelNode {
return getValue(new ExpressionState(new StandardEvaluationContext())); return getValue(new ExpressionState(new StandardEvaluationContext()));
} }
} }
public final TypedValue getTypedValue(ExpressionState expressionState) throws EvaluationException { public final TypedValue getTypedValue(ExpressionState expressionState) throws EvaluationException {
if (expressionState != null) { if (expressionState != null) {
return getValueInternal(expressionState); return getValueInternal(expressionState);
@ -118,7 +118,7 @@ public abstract class SpelNodeImpl implements SpelNode {
public SpelNode getChild(int index) { public SpelNode getChild(int index) {
return children[index]; return children[index];
} }
public int getChildCount() { public int getChildCount() {
return children.length; return children.length;
} }