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

Stream.findFirst unnecessarily always allocates an Op

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 8
    • 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).

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

              Created:
              Updated:
              Resolved: