Skip to content

Conversation

marschall
Copy link
Contributor

Clean up compiler warnings in the tests of spring-jdbc. This commit
adds type parameters to all the types (mostly List and Map). In
addition it uses Java 5 autoboxing to get rid of all of the following

  • new Integer
  • new Long
  • new Float
  • new Double
  • new Boolean
  • new String

This should be unnoticeably faster since interning can be uses for
Integer and such.

After this commit the only warnings in spring-jdbc left are:

  • raw type warning in MapDataSourceLookupTests, that code would never
    compile with generics
  • deprecation warning for #queryForInt and #queryForLong

I did sign the CLA

Clean up compiler warnings in the tests of spring-jdbc. This commit
adds type parameters to all the types (mostly `List` and `Map`). In
addition it uses Java 5 autoboxing to get rid of all of the following

 * new Integer
 * new Long
 * new Float
 * new Double
 * new Boolean
 * new String

This should be unnoticeably faster since interning can be uses for
Integer and such.

After this commit the only warnings in spring-jdbc left are:

 * raw type warning in `MapDataSourceLookupTests`, that code would never
   compile with generics
 * deprecation warning for `#queryForInt` and `#queryForLong`

I did sign the CLA
@snicoll snicoll self-assigned this Apr 21, 2014
snicoll added a commit to snicoll/spring-framework that referenced this pull request Apr 22, 2014
…ning

* spring-jdbc-warning:
  Clean up spring-jdbc tests warnings
@snicoll
Copy link
Member

snicoll commented Apr 22, 2014

Merged, thanks!

Please note the copyright should be updated if needed (see code style) and avoid updating the imports statement structure unless you really need to. I've fixed that and squashed my commit into yours.

@snicoll snicoll closed this Apr 22, 2014
@marschall
Copy link
Contributor Author

Ok, I will in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants