< prev index next >

jdk/src/jdk.jline/share/classes/jdk/internal/jline/console/internal/ConsoleReaderInputStream.java

Print this page

        

@@ -4,13 +4,13 @@
  * This software is distributable under the BSD license. See the terms of the
  * BSD license in the documentation provided with this software.
  *
  * http://www.opensource.org/licenses/bsd-license.php
  */
-package jline.console.internal;
+package jdk.internal.jline.console.internal;
  
-import jline.console.ConsoleReader;
+import jdk.internal.jline.console.ConsoleReader;
  
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.SequenceInputStream;
 import java.util.Enumeration;

@@ -47,21 +47,21 @@
     public ConsoleReaderInputStream(final ConsoleReader reader) {
         super(new ConsoleEnumeration(reader));
     }
  
     private static class ConsoleEnumeration
-        implements Enumeration
+        implements Enumeration<InputStream>
     {
         private final ConsoleReader reader;
         private ConsoleLineInputStream next = null;
         private ConsoleLineInputStream prev = null;
  
         public ConsoleEnumeration(final ConsoleReader reader) {
             this.reader = reader;
         }
  
-        public Object nextElement() {
+        public InputStream nextElement() {
             if (next != null) {
                 InputStream n = next;
                 prev = next;
                 next = null;
  
< prev index next >