src/share/classes/sun/java2d/loops/GraphicsPrimitiveProxy.java

Print this page
rev 9629 : 8038644: Fix raw and unchecked warnings in sun.java2d.*
Reviewed-by:

@@ -39,11 +39,11 @@
  * soon as they are found in the primitive list and never returned
  * to the caller.
  */
 public class GraphicsPrimitiveProxy extends GraphicsPrimitive {
 
-    private Class owner;
+    private Class<?> owner;
     private String relativeClassName;
 
     /**
      * Create a GraphicsPrimitiveProxy for a primitive with a no-argument
      * constructor.

@@ -51,11 +51,11 @@
      * @param owner The owner class for this primitive.  The primitive
      *          must be in the same package as this owner.
      * @param relativeClassName  The name of the class this is a proxy for.
      *          This should not include the package.
      */
-    public GraphicsPrimitiveProxy(Class owner, String relativeClassName,
+    public GraphicsPrimitiveProxy(Class<?> owner, String relativeClassName,
                                   String methodSignature,
                                   int primID,
                                   SurfaceType srctype,
                                   CompositeType comptype,
                                   SurfaceType dsttype)

@@ -78,11 +78,11 @@
     //
     GraphicsPrimitive instantiate() {
         String name = getPackageName(owner.getName()) + "."
                         + relativeClassName;
         try {
-            Class clazz = Class.forName(name);
+            Class<?> clazz = Class.forName(name);
             GraphicsPrimitive p = (GraphicsPrimitive) clazz.newInstance();
             if (!satisfiesSameAs(p)) {
                 throw new RuntimeException("Primitive " + p
                                            + " incompatible with proxy for "
                                            + name);