Avoid eagerly loading various EmptySpliterator classes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 24
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: