From a88b8bf9808a0d31add256bf16ac8ee59452fe49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81noky=20La=CC=81szlo=CC=81=20Viktor?= Date: Mon, 29 Nov 2021 16:50:50 +0100 Subject: [PATCH] ClientAuthenticationMethod equals and hashCode is consistent Closes gh-10559 --- .../security/oauth2/core/ClientAuthenticationMethod.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java index 7193f90eb6..1843c1d262 100644 --- a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java +++ b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ClientAuthenticationMethod.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -102,12 +102,12 @@ public final class ClientAuthenticationMethod implements Serializable { return false; } ClientAuthenticationMethod that = (ClientAuthenticationMethod) obj; - return this.getValue().equalsIgnoreCase(that.getValue()); + return getValue().equals(that.getValue()); } @Override public int hashCode() { - return this.getValue().hashCode(); + return getValue().hashCode(); } }