mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-26 05:18:05 +00:00
7090499: missing rawtypes warnings in anonymous inner class
Fix anonymous inner classes with raw types currently being built in the jdk with -Werror Reviewed-by: mcimadamore, alanb
This commit is contained in:
parent
a9ef11a8d4
commit
d5e5ad5996
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user