Skip to content

Commit c79c4c6

Browse files
committed
Fix typos and suppress warnings in JdbcTemplate
1 parent e4158f9 commit c79c4c6

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2010 the original author or authors.
2+
* Copyright 2002-2012 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.
@@ -134,8 +134,8 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
134134
/**
135135
* If this variable is set to true then all results from a stored procedure call
136136
* that don't have a corresponding SqlOutParameter declaration will be bypassed.
137-
* All other results processng will be take place unless the variable
138-
* <code>skipResultsProcessing</code> is set to <code>true</code>
137+
* All other results processing will be take place unless the variable
138+
* <code>skipResultsProcessing</code> is set to <code>true</code>.
139139
*/
140140
private boolean skipUndeclaredResults = false;
141141

@@ -274,9 +274,9 @@ public int getQueryTimeout() {
274274
}
275275

276276
/**
277-
* Set whether results processing should be skipped. Can be used to optimize callable
277+
* Set whether results processing should be skipped. Can be used to optimize callable
278278
* statement processing when we know that no results are being passed back - the processing
279-
* of out parameter will still take place. This can be used to avoid a bug in some older
279+
* of out parameter will still take place. This can be used to avoid a bug in some older
280280
* Oracle JDBC drivers like 10.1.0.2.
281281
*/
282282
public void setSkipResultsProcessing(boolean skipResultsProcessing) {
@@ -291,7 +291,7 @@ public boolean isSkipResultsProcessing() {
291291
}
292292

293293
/**
294-
* Set whether undelared results should be skipped.
294+
* Set whether undeclared results should be skipped.
295295
*/
296296
public void setSkipUndeclaredResults(boolean skipUndeclaredResults) {
297297
this.skipUndeclaredResults = skipUndeclaredResults;
@@ -1083,9 +1083,10 @@ public Map<String, Object> doInCallableStatement(CallableStatement cs) throws SQ
10831083
* Extract returned ResultSets from the completed stored procedure.
10841084
* @param cs JDBC wrapper for the stored procedure
10851085
* @param updateCountParameters Parameter list of declared update count parameters for the stored procedure
1086-
* @param resultSetParameters Parameter list of declared resturn resultSet parameters for the stored procedure
1086+
* @param resultSetParameters Parameter list of declared resultSet parameters for the stored procedure
10871087
* @return Map that contains returned results
10881088
*/
1089+
@SuppressWarnings("rawtypes")
10891090
protected Map<String, Object> extractReturnedResults(
10901091
CallableStatement cs, List updateCountParameters, List resultSetParameters, int updateCount)
10911092
throws SQLException {
@@ -1189,7 +1190,7 @@ protected Map<String, Object> extractOutputParameters(CallableStatement cs, List
11891190
* @param param the corresponding stored procedure parameter
11901191
* @return Map that contains returned results
11911192
*/
1192-
@SuppressWarnings("unchecked")
1193+
@SuppressWarnings({ "unchecked", "rawtypes" })
11931194
protected Map<String, Object> processResultSet(ResultSet rs, ResultSetSupportingSqlParameter param) throws SQLException {
11941195
if (rs == null) {
11951196
return Collections.emptyMap();
@@ -1286,7 +1287,7 @@ protected void applyStatementSettings(Statement stmt) throws SQLException {
12861287
/**
12871288
* Create a new ArgPreparedStatementSetter using the args passed in. This method allows the
12881289
* creation to be overridden by sub-classes.
1289-
* @param args object array woth arguments
1290+
* @param args object array with arguments
12901291
* @return the new PreparedStatementSetter
12911292
*/
12921293
protected PreparedStatementSetter newArgPreparedStatementSetter(Object[] args) {
@@ -1296,7 +1297,7 @@ protected PreparedStatementSetter newArgPreparedStatementSetter(Object[] args) {
12961297
/**
12971298
* Create a new ArgTypePreparedStatementSetter using the args and argTypes passed in.
12981299
* This method allows the creation to be overridden by sub-classes.
1299-
* @param args object array woth arguments
1300+
* @param args object array with arguments
13001301
* @param argTypes int array of SQLTypes for arguments
13011302
* @return the new PreparedStatementSetter
13021303
*/
@@ -1368,6 +1369,7 @@ public CloseSuppressingInvocationHandler(Connection target) {
13681369
this.target = target;
13691370
}
13701371

1372+
@SuppressWarnings("rawtypes")
13711373
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
13721374
// Invocation on ConnectionProxy interface coming in...
13731375

0 commit comments

Comments
 (0)