< prev index next >

src/java.base/share/classes/java/util/stream/Streams.java

Print this page

        

@@ -47,18 +47,10 @@
     private Streams() {
         throw new Error("no instances");
     }
 
     /**
-     * An object instance representing no value, that cannot be an actual
-     * data element of a stream.  Used when processing streams that can contain
-     * {@code null} elements to distinguish between a {@code null} value and no
-     * value.
-     */
-    static final Object NONE = new Object();
-
-    /**
      * An {@code int} range spliterator.
      */
     static final class RangeIntSpliterator implements Spliterator.OfInt {
         // Can never be greater that upTo, this avoids overflow if upper bound
         // is Integer.MAX_VALUE
< prev index next >