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

Comparable should be annotated with @FunctionalInterface

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 17, 18, 19
    • 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

            smarks Stuart Marks
            nlisker Nir Lisker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: