commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188795 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/MethodCacheEntry.java
Date Tue, 25 Oct 2011 17:06:54 GMT
Author: mcucchiara
Date: Tue Oct 25 17:06:54 2011
New Revision: 1188795

URL: http://svn.apache.org/viewvc?rev=1188795&view=rev
Log:
If statement can be simplified

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/MethodCacheEntry.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/MethodCacheEntry.java?rev=1188795&r1=1188794&r2=1188795&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/MethodCacheEntry.java
(original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/MethodCacheEntry.java
Tue Oct 25 17:06:54 2011
@@ -44,12 +44,8 @@ public class MethodCacheEntry implements
 
         MethodCacheEntry that = (MethodCacheEntry) o;
 
-        if ( !targetClass.equals( that.targetClass ) )
-        {
-            return false;
-        }
+        return targetClass.equals( that.targetClass );
 
-        return true;
     }
 
     @Override



Mime
View raw message