Skip to content

Commit a88b8bf

Browse files
Jánoky László Viktorjgrandja
Jánoky László Viktor
authored andcommitted
ClientAuthenticationMethod equals and hashCode is consistent
Closes gh-10559
1 parent 54b0330 commit a88b8bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -102,12 +102,12 @@ public boolean equals(Object obj) {
102102
return false;
103103
}
104104
ClientAuthenticationMethod that = (ClientAuthenticationMethod) obj;
105-
return this.getValue().equalsIgnoreCase(that.getValue());
105+
return getValue().equals(that.getValue());
106106
}
107107

108108
@Override
109109
public int hashCode() {
110-
return this.getValue().hashCode();
110+
return getValue().hashCode();
111111
}
112112

113113
}

0 commit comments

Comments
 (0)