File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc/core Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -185,15 +185,12 @@ public boolean isResultsParameter() {
185
185
* to a List of SqlParameter objects as used in this package.
186
186
*/
187
187
public static List <SqlParameter > sqlTypesToAnonymousParameterList (@ Nullable int ... types ) {
188
- List <SqlParameter > result ;
189
- if (types != null ) {
190
- result = new ArrayList <>(types .length );
191
- for (int type : types ) {
192
- result .add (new SqlParameter (type ));
193
- }
188
+ if (types == null ) {
189
+ return new LinkedList <>();
194
190
}
195
- else {
196
- result = new LinkedList <>();
191
+ List <SqlParameter > result = new ArrayList <>(types .length );
192
+ for (int type : types ) {
193
+ result .add (new SqlParameter (type ));
197
194
}
198
195
return result ;
199
196
}
You can’t perform that action at this time.
0 commit comments