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
This commit is contained in:
parent
5b64c9177b
commit
6315813381
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue