commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r387068 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTArrayAccess.java
Date Sun, 19 Mar 2006 23:38:22 GMT
Author: dion
Date: Sun Mar 19 15:38:21 2006
New Revision: 387068

URL: http://svn.apache.org/viewcvs?rev=387068&view=rev
Log:
Don't reassign parameters - pmd report

Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTArrayAccess.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTArrayAccess.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTArrayAccess.java?rev=387068&r1=387067&r2=387068&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTArrayAccess.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTArrayAccess.java
Sun Mar 19 15:38:21 2006
@@ -69,7 +69,7 @@
      {
          ASTIdentifier base = (ASTIdentifier) jjtGetChild(0);
 
-         obj = base.execute(obj,jc);
+         Object result = base.execute(obj,jc);
 
          /*
           * ignore the first child - it's our identifier
@@ -81,10 +81,10 @@
              if(loc==null)
                  return null;
 
-             obj = evaluateExpr(obj, loc);
+             result = evaluateExpr(result, loc);
          }
 
-         return obj;
+         return result;
      }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message