Stream.findFirst unnecessarily always allocates an Op

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 8
    • Component/s: core-libs

      The factory methods in java.util.stream.FindOps unnecessarily allocate an instance of FindOp. Such instances can be constant and held in static final fields (or lazily allocated with @Stable).

            Assignee:
            Paul Sandoz
            Reporter:
            Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: