Ticket #266: 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:14 -08:00
parent d95fe6fa53
commit f8c8201844

View File

@@ -111,7 +111,7 @@ public class ConnectionPermission
// 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);