7081796: (ch) rawtype warning in sun.nio.ch.InheritedChannel
authoralanb
Mon, 22 Aug 2011 11:35:11 +0100
changeset 10351 e2cef0ef9e28
parent 10350 6d009f117062
child 10352 edde66d3118f
child 10353 cab797d3592b
7081796: (ch) rawtype warning in sun.nio.ch.InheritedChannel Reviewed-by: chegar
jdk/src/solaris/classes/sun/nio/ch/InheritedChannel.java
--- a/jdk/src/solaris/classes/sun/nio/ch/InheritedChannel.java	Fri Aug 19 17:42:24 2011 -0700
+++ b/jdk/src/solaris/classes/sun/nio/ch/InheritedChannel.java	Mon Aug 22 11:35:11 2011 +0100
@@ -166,8 +166,8 @@
         // is implemented.
 
         Class paramTypes[] = { int.class };
-        Constructor ctr = Reflect.lookupConstructor("java.io.FileDescriptor",
-                                                    paramTypes);
+        Constructor<?> ctr = Reflect.lookupConstructor("java.io.FileDescriptor",
+                                                       paramTypes);
         Object args[] = { new Integer(fdVal) };
         FileDescriptor fd = (FileDescriptor)Reflect.invoke(ctr, args);