We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4628f88 + 5009ed6 commit dde07fdCopy full SHA for dde07fd
java/ql/test/library-tests/functional-interfaces/Test.java
@@ -21,9 +21,19 @@ interface NotFunctional {
21
interface FunctionalWithObjectMethods {
22
int f();
23
24
+ // Not actually abstract; implementation comes from Object
25
+ boolean equals(Object obj);
26
+ int hashCode();
27
String toString();
28
+ }
29
- int hashCode();
30
+ interface NotFunctionalWithObjectMethods {
31
+ int f();
32
+
33
+ // Increases their visibility from `protected` to `public`; this requires subclasses to implement them
34
+ // See also JLS section "Functional Interfaces" which explicitly covers this
35
+ Object clone();
36
+ void finalize();
37
}
38
39
0 commit comments