commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1126135 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/MapPropertyAccessor.java
Date Sun, 22 May 2011 17:53:59 GMT
Author: simonetripodi
Date: Sun May 22 17:53:58 2011
New Revision: 1126135

URL: http://svn.apache.org/viewvc?rev=1126135&view=rev
Log:
removed unnecessary cast

Modified:
    incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/MapPropertyAccessor.java

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/MapPropertyAccessor.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/MapPropertyAccessor.java?rev=1126135&r1=1126134&r2=1126135&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/MapPropertyAccessor.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/MapPropertyAccessor.java Sun
May 22 17:53:58 2011
@@ -103,7 +103,7 @@ public class MapPropertyAccessor
 
     public String getSourceAccessor( OgnlContext context, Object target, Object index )
     {
-        Node currentNode = ( (OgnlContext) context ).getCurrentNode().jjtGetParent();
+        Node currentNode = context.getCurrentNode().jjtGetParent();
         boolean indexedAccess = false;
 
         if ( currentNode == null )



Mime
View raw message