Browse Source

SEC-1702: Add Burt's patch implementing hashcode method in AntPathRequestMatcher

pull/1/head
Luke Taylor 15 years ago
parent
commit
78d5495945
  1. 9
      web/src/main/java/org/springframework/security/web/util/AntPathRequestMatcher.java

9
web/src/main/java/org/springframework/security/web/util/AntPathRequestMatcher.java

@ -132,6 +132,15 @@ public final class AntPathRequestMatcher implements RequestMatcher { @@ -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…
Cancel
Save