commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188798 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/PermissionCacheEntry.java
Date Tue, 25 Oct 2011 17:09:14 GMT
Author: mcucchiara
Date: Tue Oct 25 17:09:13 2011
New Revision: 1188798

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

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/PermissionCacheEntry.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/PermissionCacheEntry.java?rev=1188798&r1=1188797&r2=1188798&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/PermissionCacheEntry.java
(original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/internal/entry/PermissionCacheEntry.java
Tue Oct 25 17:09:13 2011
@@ -46,12 +46,8 @@ public class PermissionCacheEntry implem
 
         PermissionCacheEntry that = (PermissionCacheEntry) o;
 
-        if ( method != null ? !method.equals( that.method ) : that.method != null )
-        {
-            return false;
-        }
+        return !( method != null ? !method.equals( that.method ) : that.method != null );
 
-        return true;
     }
 
     @Override



Mime
View raw message