11/*
2- * Copyright 2002-2012 the original author or authors.
2+ * Copyright 2002-2013 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.
@@ -48,7 +48,7 @@ public class PreparedStatementCreatorFactory {
4848 /** The SQL, which won't change when the parameters change */
4949 private final String sql ;
5050
51- /** List of SqlParameter objects. May not be < code> null</code> . */
51+ /** List of SqlParameter objects. May not be {@ code null} . */
5252 private final List <SqlParameter > declaredParameters ;
5353
5454 private int resultSetType = ResultSet .TYPE_FORWARD_ONLY ;
@@ -144,31 +144,31 @@ public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor) {
144144
145145 /**
146146 * Return a new PreparedStatementSetter for the given parameters.
147- * @param params list of parameters (may be < code> null</code> )
147+ * @param params list of parameters (may be {@ code null} )
148148 */
149- public PreparedStatementSetter newPreparedStatementSetter (List params ) {
149+ public PreparedStatementSetter newPreparedStatementSetter (List <?> params ) {
150150 return new PreparedStatementCreatorImpl (params != null ? params : Collections .emptyList ());
151151 }
152152
153153 /**
154154 * Return a new PreparedStatementSetter for the given parameters.
155- * @param params the parameter array (may be < code> null</code> )
155+ * @param params the parameter array (may be {@ code null} )
156156 */
157157 public PreparedStatementSetter newPreparedStatementSetter (Object [] params ) {
158158 return new PreparedStatementCreatorImpl (params != null ? Arrays .asList (params ) : Collections .emptyList ());
159159 }
160160
161161 /**
162162 * Return a new PreparedStatementCreator for the given parameters.
163- * @param params list of parameters (may be < code> null</code> )
163+ * @param params list of parameters (may be {@ code null} )
164164 */
165165 public PreparedStatementCreator newPreparedStatementCreator (List <?> params ) {
166166 return new PreparedStatementCreatorImpl (params != null ? params : Collections .emptyList ());
167167 }
168168
169169 /**
170170 * Return a new PreparedStatementCreator for the given parameters.
171- * @param params the parameter array (may be < code> null</code> )
171+ * @param params the parameter array (may be {@ code null} )
172172 */
173173 public PreparedStatementCreator newPreparedStatementCreator (Object [] params ) {
174174 return new PreparedStatementCreatorImpl (params != null ? Arrays .asList (params ) : Collections .emptyList ());
@@ -178,7 +178,7 @@ public PreparedStatementCreator newPreparedStatementCreator(Object[] params) {
178178 * Return a new PreparedStatementCreator for the given parameters.
179179 * @param sqlToUse the actual SQL statement to use (if different from
180180 * the factory's, for example because of named parameter expanding)
181- * @param params the parameter array (may be < code> null</code> )
181+ * @param params the parameter array (may be {@ code null} )
182182 */
183183 public PreparedStatementCreator newPreparedStatementCreator (String sqlToUse , Object [] params ) {
184184 return new PreparedStatementCreatorImpl (
@@ -225,7 +225,7 @@ public PreparedStatementCreatorImpl(String actualSql, List parameters) {
225225 }
226226
227227 public PreparedStatement createPreparedStatement (Connection con ) throws SQLException {
228- PreparedStatement ps = null ;
228+ PreparedStatement ps ;
229229 if (generatedKeysColumnNames != null || returnGeneratedKeys ) {
230230 try {
231231 if (generatedKeysColumnNames != null ) {
@@ -263,7 +263,7 @@ public void setValues(PreparedStatement ps) throws SQLException {
263263 int sqlColIndx = 1 ;
264264 for (int i = 0 ; i < this .parameters .size (); i ++) {
265265 Object in = this .parameters .get (i );
266- SqlParameter declaredParameter = null ;
266+ SqlParameter declaredParameter ;
267267 // SqlParameterValue overrides declared parameter metadata, in particular for
268268 // independence from the declared parameter position in case of named parameters.
269269 if (in instanceof SqlParameterValue ) {
0 commit comments