提交 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 {
AccessController.doPrivileged(
new PrivilegedExceptionAction<Void>() {
public Void run() throws NoSuchMethodException {
Class[] cl = new Class[1];
Class<?>[] cl = new Class<?>[1];
cl[0] = DatagramPacket.class;
impl.getClass().getDeclaredMethod("peekData", cl);
return null;
......
......@@ -1661,7 +1661,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
public IOException run() throws Exception {
return (IOException)
rememberedException.getClass()
.getConstructor(new Class[] { String.class })
.getConstructor(new Class<?>[] { String.class })
.newInstance(args);
}
});
......
......@@ -1335,10 +1335,10 @@ public final class SunPKCS11 extends AuthProvider {
return null;
}
Class c = Class.forName
(defaultHandler,
true,
Thread.currentThread().getContextClassLoader());
Class<?> c = Class.forName
(defaultHandler,
true,
Thread.currentThread().getContextClassLoader());
return (CallbackHandler)c.newInstance();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册