提交 9aa11daa 编写于 作者: C chegar

7090499: missing rawtypes warnings in anonymous inner class

Summary: Fix anonymous inner classes with raw types currently being built in the jdk with -Werror
Reviewed-by: mcimadamore, alanb
上级 caea6bb4
...@@ -287,7 +287,7 @@ class DatagramSocket implements java.io.Closeable { ...@@ -287,7 +287,7 @@ class DatagramSocket implements java.io.Closeable {
AccessController.doPrivileged( AccessController.doPrivileged(
new PrivilegedExceptionAction<Void>() { new PrivilegedExceptionAction<Void>() {
public Void run() throws NoSuchMethodException { public Void run() throws NoSuchMethodException {
Class[] cl = new Class[1]; Class<?>[] cl = new Class<?>[1];
cl[0] = DatagramPacket.class; cl[0] = DatagramPacket.class;
impl.getClass().getDeclaredMethod("peekData", cl); impl.getClass().getDeclaredMethod("peekData", cl);
return null; return null;
......
...@@ -1661,7 +1661,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection { ...@@ -1661,7 +1661,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
public IOException run() throws Exception { public IOException run() throws Exception {
return (IOException) return (IOException)
rememberedException.getClass() rememberedException.getClass()
.getConstructor(new Class[] { String.class }) .getConstructor(new Class<?>[] { String.class })
.newInstance(args); .newInstance(args);
} }
}); });
......
...@@ -1335,10 +1335,10 @@ public final class SunPKCS11 extends AuthProvider { ...@@ -1335,10 +1335,10 @@ public final class SunPKCS11 extends AuthProvider {
return null; return null;
} }
Class c = Class.forName Class<?> c = Class.forName
(defaultHandler, (defaultHandler,
true, true,
Thread.currentThread().getContextClassLoader()); Thread.currentThread().getContextClassLoader());
return (CallbackHandler)c.newInstance(); return (CallbackHandler)c.newInstance();
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册