changeset 11275 | 7cb0861d512f |
parent 11117 | b6e68b1344d4 |
child 12298 | 6e0b65d86fde |
--- a/jdk/src/share/classes/java/lang/ClassLoader.java Wed Dec 07 12:12:50 2011 -0800 +++ b/jdk/src/share/classes/java/lang/ClassLoader.java Thu Dec 08 13:48:54 2011 -0500 @@ -1167,7 +1167,8 @@ * @since 1.2 */ public Enumeration<URL> getResources(String name) throws IOException { - Enumeration[] tmp = new Enumeration[2]; + @SuppressWarnings("unchecked") + Enumeration<URL>[] tmp = (Enumeration<URL>[]) new Enumeration<?>[2]; if (parent != null) { tmp[0] = parent.getResources(name); } else {