commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1198657 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java
Date Mon, 07 Nov 2011 09:11:03 GMT
Author: mcucchiara
Date: Mon Nov  7 09:11:02 2011
New Revision: 1198657

URL: http://svn.apache.org/viewvc?rev=1198657&view=rev
Log:
OGNL-38 - Test CONSTANT.equals(variable).

Modified:
    commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java?rev=1198657&r1=1198656&r2=1198657&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java
(original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java
Mon Nov  7 09:11:02 2011
@@ -41,9 +41,9 @@ public class ArrayPropertyAccessor
 
         if ( name instanceof String )
         {
-            if ( name.equals( "length" ) )
+            if ( "length".equals( name ) )
             {
-                result = Array.getLength(target);
+                result = Array.getLength( target );
             }
             else
             {



Mime
View raw message