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
- relates to
-
JDK-8022658 Revisit FunctionalInterface on some core libs types
- Resolved