Comparable should be annotated with @FunctionalInterface

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 17, 18, 19
    • Component/s: core-libs
    • None

      https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Comparable.html is a functional interface according to https://docs.oracle.com/javase/specs/jls/se18/html/jls-9.html#jls-9.8 and could (and probably should) be annotated with @FunctionalInterface

            Assignee:
            Stuart Marks
            Reporter:
            Nir Lisker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: