From 631581338109b21d56095a662dd04cf5d172aa16 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 14 Mar 2009 13:32:29 +0000 Subject: [PATCH] Casts not really needed, but keep for consistency so suppress warnings git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@753653 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/builder/ToStringBuilderTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java b/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java index bf1774e30..69c22193b 100644 --- a/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java +++ b/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java @@ -663,6 +663,7 @@ public class ToStringBuilderTest extends TestCase { assertEquals(baseStr + "[a=3,b=4]", new ToStringBuilder(base).append("a", (byte) 3).append("b", (byte) 4).toString()); } + @SuppressWarnings("cast") public void testDouble() { assertEquals(baseStr + "[3.2]", new ToStringBuilder(base).append((double) 3.2).toString()); assertEquals(baseStr + "[a=3.2]", new ToStringBuilder(base).append("a", (double) 3.2).toString());