fixed equals for subclasses
This commit is contained in:
@@ -246,11 +246,11 @@ public class NoUser implements Serializable {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!otherUser.getClass().equals(getClass())) {
|
if (!NoUser.class.isAssignableFrom(otherUser.getClass())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.privateKey.equals(((NoUser) otherUser).privateKey);
|
return this.privateKey.getModulus().equals(((NoUser) otherUser).privateKey.getModulus());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user