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

Print this page

        

@@ -368,11 +368,11 @@
      *            <code>parameters</code> <code>Vector</code>
      * @return a new <code>ParameterBlock</code> containing
      *         the specified parameter.
      */
     public ParameterBlock add(int i) {
-        return add(new Integer(i));
+        return add(i);
     }
 
     /**
      * Adds a Long to the list of parameters.
      * @param l the long to add to the

@@ -487,11 +487,11 @@
      *        replaced with the specified parameter
      * @return a new <code>ParameterBlock</code> containing
      *        the specified parameter.
      */
     public ParameterBlock set(int i, int index) {
-        return set(new Integer(i), index);
+        return set(i, index);
     }
 
     /**
      * Replaces an Object in the list of parameters with a Long.
      * If the index lies beyond the current source list,