Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 38724 invoked from network); 19 Mar 2006 23:38:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Mar 2006 23:38:46 -0000 Received: (qmail 70008 invoked by uid 500); 19 Mar 2006 23:38:44 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 69922 invoked by uid 500); 19 Mar 2006 23:38:44 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 69911 invoked by uid 500); 19 Mar 2006 23:38:44 -0000 Received: (qmail 69907 invoked by uid 99); 19 Mar 2006 23:38:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2006 15:38:44 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 19 Mar 2006 15:38:43 -0800 Received: (qmail 38615 invoked by uid 65534); 19 Mar 2006 23:38:23 -0000 Message-ID: <20060319233823.38614.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commons-cvs@jakarta.apache.org From: dion@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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