commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1104496 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheImpl.java
Date Tue, 17 May 2011 19:51:24 GMT
Author: simonetripodi
Date: Tue May 17 19:51:23 2011
New Revision: 1104496

URL: http://svn.apache.org/viewvc?rev=1104496&view=rev
Log:
removed useless else branch

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

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheImpl.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheImpl.java?rev=1104496&r1=1104495&r2=1104496&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheImpl.java
(original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/ClassCacheImpl.java
Tue May 17 19:51:23 2011
@@ -123,15 +123,14 @@ public class ClassCacheImpl
                         entry.value = value;
                         break;
                     }
-                    else
+
+                    if ( entry.next == null )
                     {
-                        if ( entry.next == null )
-                        {
-                            /* add value */
-                            entry.next = new Entry<T>( key, value );
-                            break;
-                        }
+                        /* add value */
+                        entry.next = new Entry<T>( key, value );
+                        break;
                     }
+
                     entry = entry.next;
                 }
             }



Mime
View raw message