commons-commits mailing list archives

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

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

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/DeclaredMethodCacheEntry.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/DeclaredMethodCacheEntry.java?rev=1188792&r1=1188791&r2=1188792&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/DeclaredMethodCacheEntry.java
(original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/DeclaredMethodCacheEntry.java
Tue Oct 25 17:04:15 2011
@@ -57,11 +57,7 @@ public class DeclaredMethodCacheEntry
 
         DeclaredMethodCacheEntry that = (DeclaredMethodCacheEntry) o;
 
-        if ( targetClass != that.targetClass )
-        {
-            return false;
-        }
-        return true;
+        return targetClass == that.targetClass;
     }
 
     @Override



Mime
View raw message