db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1486071 - /db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/ij/ijMultipleResultSetResult.java
Date Fri, 24 May 2013 14:22:36 GMT
Author: kahatlen
Date: Fri May 24 14:22:36 2013
New Revision: 1486071

URL: http://svn.apache.org/r1486071
Log:
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features

Use ArrayList's constructor instead of Object.clone() to create a copy of
a list in a type-safe way.

Modified:
    db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/ij/ijMultipleResultSetResult.java

Modified: db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/ij/ijMultipleResultSetResult.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/ij/ijMultipleResultSetResult.java?rev=1486071&r1=1486070&r2=1486071&view=diff
==============================================================================
--- db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/ij/ijMultipleResultSetResult.java
(original)
+++ db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/ij/ijMultipleResultSetResult.java
Fri May 24 14:22:36 2013
@@ -72,9 +72,8 @@ public class ijMultipleResultSetResult e
         return true;
     }
 
-    @SuppressWarnings("unchecked")
     public List<ResultSet> getMultipleResultSets() {
-        return (List<ResultSet>) resultSets.clone();
+        return new ArrayList<ResultSet>(resultSets);
     }
 
     public void closeStatement() throws SQLException {



Mime
View raw message