Skip to content

Commit ed0265b

Browse files
ngocnhan-tran1996jgrandja
authored andcommitted
Polish
Closes gh-1842
1 parent e8f627f commit ed0265b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/JdbcOAuth2AuthorizationService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,7 @@ private LobCreatorArgumentPreparedStatementSetter(LobCreator lobCreator, Object[
766766

767767
@Override
768768
protected void doSetValue(PreparedStatement ps, int parameterPosition, Object argValue) throws SQLException {
769-
if (argValue instanceof SqlParameterValue) {
770-
SqlParameterValue paramValue = (SqlParameterValue) argValue;
769+
if (argValue instanceof SqlParameterValue paramValue) {
771770
if (paramValue.getSqlType() == Types.BLOB) {
772771
if (paramValue.getValue() != null) {
773772
Assert.isInstanceOf(byte[].class, paramValue.getValue(),

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2ClientAuthenticationToken.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2024 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.
@@ -92,7 +92,7 @@ public OAuth2ClientAuthenticationToken(RegisteredClient registeredClient,
9292
this.registeredClient = registeredClient;
9393
this.clientAuthenticationMethod = clientAuthenticationMethod;
9494
this.credentials = credentials;
95-
this.additionalParameters = Collections.unmodifiableMap(Collections.emptyMap());
95+
this.additionalParameters = Collections.emptyMap();
9696
setAuthenticated(true);
9797
}
9898

0 commit comments

Comments
 (0)