Skip to content

Commit 126781f

Browse files
committed
Polishing.
Reformat code. See #1666 Original pull request: #1667
1 parent 30961bf commit 126781f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/IdGeneratingBatchInsertStrategy.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ public Object[] execute(String sql, SqlParameterSource[] sqlParameterSources) {
9696

9797
private String[] getKeyColumnNames(IdGeneration idGeneration) {
9898

99-
return Optional.ofNullable(idColumn)
100-
.map(idColumn -> new String[] {idGeneration.getKeyColumnName( idColumn) })
99+
return Optional.ofNullable(idColumn).map(idColumn -> new String[] { idGeneration.getKeyColumnName(idColumn) })
101100
.orElse(new String[0]);
102101
}
103102
}

0 commit comments

Comments
 (0)