SEC-1121: InMemoryResource.equals() is wrong. Corrected as suggested.
This commit is contained in:
@@ -68,7 +68,7 @@ public class InMemoryResource extends AbstractResource {
|
||||
}
|
||||
|
||||
public boolean equals(Object res) {
|
||||
if (res instanceof InMemoryResource) {
|
||||
if (!(res instanceof InMemoryResource)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user