This commit is contained in:
Looly 2022-05-12 01:38:18 +08:00
parent 5c31ecf526
commit 0da39cfd9d

View File

@ -22,6 +22,7 @@ public class CastUtilTest {
map.put(1, 1);
Collection<Number> collection2 = CastUtil.castUp(collection);
collection2.add(new Double("123.1"));
Assert.assertSame(collection, collection2);
Collection<Integer> collection3 = CastUtil.castDown(collection2);