Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333774

Avoid eagerly loading various EmptySpliterator classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 24
    • None
    • core-libs
    • b02

      java.util.Spliterators defines 4 EmptySpliterators at the top level, loading the related classes eagerly when Spliterators is initialized. Simply moving the singletons to be static fields on each respective spliterator class makes it a bit lazier at no cost.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: