Use generics. Structure code so explicit @SuppressWarnings annotations can be used rather than adding one that covers the entire method.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/dbcp/trunk@1537111 13f79535-47bb-0310-9956-ffa450edef68