Erroneous Javadoc in java.util.stream.MatchOps.MatchKind

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 8u141, 10.0.1, 11.0.1
    • Component/s: core-libs

      The Javadoc in java.util.stream.MatchOps.MatchKind's ANY and ALL enum literals are switched:

      enum MatchKind {
              /** Do all elements match the predicate? */
              ANY(true, true),

              /** Do any elements match the predicate? */
              ALL(false, false),

              /** Do no elements match the predicate? */
              NONE(true, false);
              ...

            Assignee:
            Stuart Marks
            Reporter:
            Lukas Eder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: