File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/java/org/springframework/jdbc/core
test/java/org/springframework/jdbc/object Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -180,7 +180,7 @@ public PreparedStatementCreator newPreparedStatementCreator(@Nullable Object[] p
180
180
*/
181
181
public PreparedStatementCreator newPreparedStatementCreator (String sqlToUse , @ Nullable Object [] params ) {
182
182
return new PreparedStatementCreatorImpl (
183
- sqlToUse , params != null ? Arrays .asList (params ) : Collections .emptyList ());
183
+ sqlToUse , ( params != null ? Arrays .asList (params ) : Collections .emptyList () ));
184
184
}
185
185
186
186
Original file line number Diff line number Diff line change @@ -211,9 +211,8 @@ public void testUpdateAndGeneratedKeys() throws SQLException {
211
211
given (resultSet .getObject (1 )).willReturn (11 );
212
212
given (preparedStatement .executeUpdate ()).willReturn (1 );
213
213
given (preparedStatement .getGeneratedKeys ()).willReturn (resultSet );
214
- given (connection .prepareStatement (INSERT_GENERATE_KEYS ,
215
- PreparedStatement .RETURN_GENERATED_KEYS )
216
- ).willReturn (preparedStatement );
214
+ given (connection .prepareStatement (INSERT_GENERATE_KEYS , PreparedStatement .RETURN_GENERATED_KEYS ))
215
+ .willReturn (preparedStatement );
217
216
218
217
GeneratedKeysUpdater pc = new GeneratedKeysUpdater ();
219
218
KeyHolder generatedKeyHolder = new GeneratedKeyHolder ();
@@ -294,6 +293,7 @@ public void testNotRequiredRows() throws SQLException {
294
293
pc ::run );
295
294
}
296
295
296
+
297
297
private class Updater extends SqlUpdate {
298
298
299
299
public Updater () {
You can’t perform that action at this time.
0 commit comments