Ticket #267: Fixed equals() logic error - if both identifiers are false the two objects should be equal

This commit is contained in:
James Muehlner
2013-02-12 15:35:49 -08:00
parent f8c8201844
commit 20bb937208

View File

@@ -106,7 +106,7 @@ public class UserPermission implements ObjectPermission<String> {
// If null identifier, equality depends on whether other identifier
// is null
if (identifier == null)
return other.identifier != null;
return other.identifier == null;
// Otherwise, equality depends entirely on identifier
return identifier.equals(other.identifier);