Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
Closes gh-1842
  • Loading branch information
ngocnhan-tran1996 authored and jgrandja committed Nov 29, 2024
1 parent e8f627f commit ed0265b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,7 @@ private LobCreatorArgumentPreparedStatementSetter(LobCreator lobCreator, Object[

@Override
protected void doSetValue(PreparedStatement ps, int parameterPosition, Object argValue) throws SQLException {
if (argValue instanceof SqlParameterValue) {
SqlParameterValue paramValue = (SqlParameterValue) argValue;
if (argValue instanceof SqlParameterValue paramValue) {
if (paramValue.getSqlType() == Types.BLOB) {
if (paramValue.getValue() != null) {
Assert.isInstanceOf(byte[].class, paramValue.getValue(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2022 the original author or authors.
* Copyright 2020-2024 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.
Expand Down Expand Up @@ -92,7 +92,7 @@ public OAuth2ClientAuthenticationToken(RegisteredClient registeredClient,
this.registeredClient = registeredClient;
this.clientAuthenticationMethod = clientAuthenticationMethod;
this.credentials = credentials;
this.additionalParameters = Collections.unmodifiableMap(Collections.emptyMap());
this.additionalParameters = Collections.emptyMap();
setAuthenticated(true);
}

Expand Down

0 comments on commit ed0265b

Please sign in to comment.