Loading... (original) (raw)

Uploaded image for project: 'JDK'

  1. JDK
  2. JDK-8048690

Support Spliterator.NONNULL characteristic in BaseStream.spliterator()

The stream pipeline currently ignores the Spliterator.NONNULL characteristic. Any stream source that declares NONNULL will be ignored and will not be present in the escape-hatch BaseStream.spliterator(), assuming that preceding intermediate operations don't clear it (e.g. a map/flatMap operation).