mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
SEC-1702: Add Burt's patch implementing hashcode method in AntPathRequestMatcher
This commit is contained in:
parent
4a1908188a
commit
78d5495945
@ -132,6 +132,15 @@ public final class AntPathRequestMatcher implements RequestMatcher {
|
||||
this.httpMethod == other.httpMethod;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int code = 31 ^ pattern.hashCode();
|
||||
if (httpMethod != null) {
|
||||
code ^= httpMethod.hashCode();
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
Loading…
x
Reference in New Issue
Block a user