From 5b64c9177be6d6ae69d05686cba60e09eb0bdf2a Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 14 Mar 2009 13:23:02 +0000 Subject: [PATCH] Avoid class cast and unused var warnings [Eclipse] git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753652 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/commons/lang/ArrayUtilsTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/org/apache/commons/lang/ArrayUtilsTest.java b/src/test/org/apache/commons/lang/ArrayUtilsTest.java index 2be3f8d19..a30a74537 100644 --- a/src/test/org/apache/commons/lang/ArrayUtilsTest.java +++ b/src/test/org/apache/commons/lang/ArrayUtilsTest.java @@ -335,7 +335,8 @@ public class ArrayUtilsTest extends TestCase { assertNotSame("java.sql.Date type", java.sql.Date.class, ArrayUtils.subarray(dateArray, 1, 4).getClass().getComponentType()); try { - Object dummy = (java.sql.Date[])ArrayUtils.subarray(dateArray, 1,3); + @SuppressWarnings("unused") + java.sql.Date[] dummy = (java.sql.Date[])ArrayUtils.subarray(dateArray, 1,3); fail("Invalid downcast"); } catch (ClassCastException e) {} }