Looly 5 年 前
コミット
688eefc02b

+ 5 - 0
hutool-core/src/test/java/cn/hutool/core/util/ArrayUtilTest.java

@@ -42,6 +42,11 @@ public class ArrayUtilTest {
 		isEmpty = ArrayUtil.isEmpty(d);
 		isEmpty = ArrayUtil.isEmpty(d);
 		//noinspection ConstantConditions
 		//noinspection ConstantConditions
 		Assert.assertTrue(isEmpty);
 		Assert.assertTrue(isEmpty);
+
+		// Object数组
+		Object[] e = new Object[]{"1", "2", 3, 4D};
+		final boolean empty = ArrayUtil.isEmpty(e);
+		Assert.assertFalse(empty);
 	}
 	}
 
 
 	@Test
 	@Test