Return-Path: X-Original-To: apmail-db-derby-commits-archive@www.apache.org Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9AAF9DA07 for ; Fri, 24 May 2013 14:23:01 +0000 (UTC) Received: (qmail 84541 invoked by uid 500); 24 May 2013 14:23:01 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 84455 invoked by uid 500); 24 May 2013 14:23:00 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 84427 invoked by uid 99); 24 May 2013 14:22:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 14:22:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 14:22:57 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 888022388A9C; Fri, 24 May 2013 14:22:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: derby-commits@db.apache.org From: kahatlen@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130524142236.888022388A9C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 getMultipleResultSets() { - return (List) resultSets.clone(); + return new ArrayList(resultSets); } public void closeStatement() throws SQLException {