Author: olamy
Date: Fri Sep  6 03:49:02 2013
New Revision: 1520487

URL: http://svn.apache.org/r1520487
Log:
simplify code

Modified:
    
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/Role.java

Modified: 
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/Role.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/Role.java?rev=1520487&r1=1520486&r2=1520487&view=diff
==============================================================================
--- 
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/Role.java
 (original)
+++ 
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/Role.java
 Fri Sep  6 03:49:02 2013
@@ -83,9 +83,8 @@ public class Role implements Comparable<
         if (getClass() != obj.getClass())
             return false;
         final Role other = (Role) obj;
-        if (name == null) {
-            if (other.name != null)
-                return false;
+        if (name == null && other.name != null) {
+            return false;
         } else if (!name.equals(other.name)) {
             return false;
         }


Reply via email to