Commits

Anonymous committed 2288135

Minor syntax cleanup.

  • Participants
  • Parent commits d0e0c75

Comments (0)

Files changed (1)

File src/java/ognl/ASTAdd.java

  */
 class ASTAdd extends NumericExpression
 {
-    public ASTAdd(int id) {
+    public ASTAdd(int id)
+    {
         super(id);
     }
 
-    public ASTAdd(OgnlParser p, int id) {
+    public ASTAdd(OgnlParser p, int id)
+    {
         super(p, id);
     }
 
-    public void jjtClose() {
+    public void jjtClose()
+    {
         flattenTree();
     }
 
     protected Object getValueBody( OgnlContext context, Object source ) throws OgnlException
     {
         Object result = _children[0].getValue( context, source );
+
         for ( int i=1; i < _children.length; ++i )
             result = OgnlOps.add( result, _children[i].getValue(context, source) );
+
         return result;
     }
 
                          && !NumericExpression.class.isAssignableFrom(_children[i].getClass()))
                     {
                         if (context.getCurrentType() != null && Number.class.isAssignableFrom(context.getCurrentType())
-                            && !ASTMethod.class.isInstance(_children[i])) {
-
+                            && !ASTMethod.class.isInstance(_children[i]))
+                        {
                             if (ASTVarRef.class.isInstance(_children[i])
                                 || ASTProperty.class.isInstance(_children[i])
                                 || ASTChain.class.isInstance(_children[i]))