commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1203584 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheHandler.java
Date Fri, 18 Nov 2011 10:54:19 GMT
Author: mcucchiara
Date: Fri Nov 18 10:54:19 2011
New Revision: 1203584

URL: http://svn.apache.org/viewvc?rev=1203584&view=rev
Log:
OGNL-39 - Renamed local var

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheHandler.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheHandler.java?rev=1203584&r1=1203583&r2=1203584&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheHandler.java
(original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheHandler.java
Fri Nov 18 10:54:19 2011
@@ -50,12 +50,12 @@ public class ClassCacheHandler
                 {
                     keyFound = forClass;
                     outer:
-                    for ( Class<?> c = forClass; c != null; c = c.getSuperclass() )
+                    for ( Class<?> clazz = forClass; clazz != null; clazz = clazz.getSuperclass()
)
                     {
-                        answer = handlers.get( c );
+                        answer = handlers.get( clazz );
                         if ( answer == null )
                         {
-                            Class<?>[] interfaces = c.getInterfaces();
+                            Class<?>[] interfaces = clazz.getInterfaces();
                             for ( Class<?> iface : interfaces )
                             {
                                 answer = handlers.get( iface );
@@ -73,7 +73,7 @@ public class ClassCacheHandler
                         }
                         else
                         {
-                            keyFound = c;
+                            keyFound = clazz;
                             break;
                         }
                     }



Mime
View raw message