Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

SEC-1702: AntPathRequestMatcher overrides equals but not hashCode #1939

spring-issuemaster opened this Issue Mar 25, 2011 · 1 comment


None yet
1 participant

Burt Beckwith (Migrated from SEC-1702) said:

Here's a proposed implementation:

public int hashCode() {
   int code = 31 ^ pattern.hashCode();
   if (httpMethod != null) {
      code ^= httpMethod.hashCode();
   return code;

Luke Taylor said:

Thanks, Burt. I've added the method.

@spring-issuemaster spring-issuemaster added this to the 3.1.0.RC2 milestone Feb 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment