LANG-820 TypeUtils.normalizeUpperBounds broken?
Added test to show it works OK git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
04babff379
commit
0490f1c291
|
@ -655,6 +655,13 @@ public void testGetArrayComponentType() throws Exception {
|
|||
Assert.assertEquals(types[6], TypeUtils.getArrayComponentType(types[13]));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLang820() throws Exception {
|
||||
Type[] typeArray = {String.class, String.class};
|
||||
Type[] expectedArray = {String.class};
|
||||
Assert.assertArrayEquals(expectedArray, TypeUtils.normalizeUpperBounds(typeArray));
|
||||
}
|
||||
|
||||
public Iterable<? extends Map<Integer, ? extends Collection<?>>> iterable;
|
||||
|
||||
public static <G extends Comparable<G>> G stub() {
|
||||
|
|
Loading…
Reference in New Issue