commons-commits mailing list archives

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

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

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/GenericMethodParameterTypeCacheEntry.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/GenericMethodParameterTypeCacheEntry.java?rev=1188793&r1=1188792&r2=1188793&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/GenericMethodParameterTypeCacheEntry.java
(original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/GenericMethodParameterTypeCacheEntry.java
Tue Oct 25 17:04:57 2011
@@ -50,16 +50,8 @@ public class GenericMethodParameterTypeC
 
         GenericMethodParameterTypeCacheEntry that = (GenericMethodParameterTypeCacheEntry)
o;
 
-        if ( !method.equals( that.method ) )
-        {
-            return false;
-        }
-        if ( !type.equals( that.type ) )
-        {
-            return false;
-        }
+        return method.equals( that.method ) && type.equals( that.type );
 
-        return true;
     }
 
     @Override



Mime
View raw message