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

Print this page

        

*** 42,52 **** * @author Author van Hoff * @since JDK1.0 */ public class SequenceInputStream extends InputStream { ! Enumeration e; InputStream in; /** * Initializes a newly created <code>SequenceInputStream</code> * by remembering the argument, which must --- 42,52 ---- * @author Author van Hoff * @since JDK1.0 */ public class SequenceInputStream extends InputStream { ! Enumeration<? extends InputStream> e; InputStream in; /** * Initializes a newly created <code>SequenceInputStream</code> * by remembering the argument, which must
*** 83,93 **** * * @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); v.addElement(s1); v.addElement(s2); e = v.elements(); try { --- 83,93 ---- * * @param s1 the first input stream to read. * @param s2 the second input stream to read. */ public SequenceInputStream(InputStream s1, InputStream s2) { ! Vector<InputStream> v = new Vector<>(2); v.addElement(s1); v.addElement(s2); e = v.elements(); try {