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:
Chris Hegarty 2011-10-06 12:15:07 +01:00
parent a9ef11a8d4
commit d5e5ad5996
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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);
}
});

View File

@ -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();
}
});