mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 14:22:47 +00:00
SEC-1121: InMemoryResource.equals() is wrong. Corrected as suggested.
This commit is contained in:
parent
4aff4b2350
commit
a45ba138f7
@ -68,7 +68,7 @@ public class InMemoryResource extends AbstractResource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean equals(Object res) {
|
public boolean equals(Object res) {
|
||||||
if (res instanceof InMemoryResource) {
|
if (!(res instanceof InMemoryResource)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user