src/share/classes/java/awt/image/renderable/ParameterBlock.java

Print this page

        

@@ -91,10 +91,13 @@
  * ParameterBlock pb = new ParameterBlock();
  * op = new RenderableImageOp("operation", pb.add(arg1).add(arg2));
  * </pre>
  * */
 public class ParameterBlock implements Cloneable, Serializable {
+
+    private static final long serialVersionUID = -7577115551785240750L;
+
     /** A Vector of sources, stored as arbitrary Objects. */
     protected Vector<Object> sources = new Vector<Object>();
 
     /** A Vector of non-source parameters, stored as arbitrary Objects. */
     protected Vector<Object> parameters = new Vector<Object>();

@@ -276,11 +279,11 @@
         this.sources = sources;
     }
 
     /** Clears the list of source images. */
     public void removeSources() {
-        sources = new Vector();
+        sources = new Vector<Object>();
     }
 
     /**
      * Returns the number of parameters (not including source images).
      * @return the number of parameters in the <code>parameters</code>

@@ -309,11 +312,11 @@
         this.parameters = parameters;
     }
 
     /** Clears the list of parameters. */
     public void removeParameters() {
-        parameters = new Vector();
+        parameters = new Vector<Object>();
     }
 
     /**
      * Adds an object to the list of parameters.
      * @param obj the <code>Object</code> to add to the