WidgetsCatalogMarkupController up
[portal.git] / portal-BE / src / main / java / org / onap / portal / domain / dto / transport / ExternalAccessPerms.java
index 1358233..de176af 100644 (file)
@@ -118,12 +118,8 @@ public class ExternalAccessPerms implements Serializable, Comparable {
             return false;
         }
         if (type == null) {
-            if (other.type != null) {
-                return false;
-            }
-        } else if (!type.equals(other.type)) {
-            return false;
-        }
-        return true;
+            return other.type == null;
+        } else
+            return type.equals(other.type);
     }
 }