From 9e0b31180dcfd9d39ca24d266cf785488a5aa3f2 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 25 Feb 2021 18:37:19 -0500 Subject: [PATCH] Drop init to defaults. --- .../commons/lang3/reflect/TypeUtilsTest.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java index 379ab803f..ce2fbbc4b 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java @@ -450,18 +450,18 @@ public class TypeUtilsTest { public void testIsAssignable() throws SecurityException, NoSuchMethodException, NoSuchFieldException { List list0 = null; - List list1 = null; - List list2 = null; - List list3 = null; - List list4 = null; - List list5 = null; - List list6 = null; + List list1; + List list2; + List list3; + List list4; + List list5; + List list6; List[] list7 = null; - List[] list8 = null; - List[] list9 = null; - List[] list10 = null; - List[] list11 = null; - List[] list12 = null; + List[] list8; + List[] list9; + List[] list10; + List[] list11; + List[] list12; List[] list13; final Class clazz = getClass(); final Method method = clazz.getMethod("dummyMethod", List.class, List.class, List.class, @@ -702,7 +702,7 @@ public class TypeUtilsTest { int in = 0; long lo = 0; final float fl = 0; - double du = 0; + double du; du = ch; assertTrue(TypeUtils.isAssignable(char.class, double.class)); du = by;