Ticket #266: Fixed equals() logic error - if both identifiers are false the two objects should be equal
This commit is contained in:
1 parent
d95fe6fa53
commit
f8c8201844
1 file changed
+1
-1
+1
-1
@@ -111,7 +111,7 @@ public class ConnectionPermission
|
|||||||
// If null identifier, equality depends on whether other identifier
|
// If null identifier, equality depends on whether other identifier
|
||||||
// is null
|
// is null
|
||||||
if (identifier == null)
|
if (identifier == null)
|
||||||
return other.identifier != null;
|
return other.identifier == null;
|
||||||
|
|
||||||
// Otherwise, equality depends entirely on identifier
|
// Otherwise, equality depends entirely on identifier
|
||||||
return identifier.equals(other.identifier);
|
return identifier.equals(other.identifier);
|
||||||
|
|||||||
Reference in new issue
Block a user