src/share/classes/java/io/SequenceInputStream.java

Print this page

        

@@ -42,11 +42,11 @@
  * @author  Author van Hoff
  * @since   JDK1.0
  */
 public
 class SequenceInputStream extends InputStream {
-    Enumeration e;
+    Enumeration<? extends InputStream> e;
     InputStream in;
 
     /**
      * Initializes a newly created <code>SequenceInputStream</code>
      * by remembering the argument, which must

@@ -83,11 +83,11 @@
      *
      * @param   s1   the first input stream to read.
      * @param   s2   the second input stream to read.
      */
     public SequenceInputStream(InputStream s1, InputStream s2) {
-        Vector  v = new Vector(2);
+        Vector<InputStream> v = new Vector<>(2);
 
         v.addElement(s1);
         v.addElement(s2);
         e = v.elements();
         try {