File tree Expand file tree Collapse file tree
java/ql/test/library-tests/functional-interfaces Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ public class Test {
2+
3+ interface Functional {
4+ int f ();
5+ }
6+
7+ class Concrete implements Functional {
8+ public int f () { return 0 ; }
9+ }
10+
11+ interface FunctionalWithDefaults {
12+ int f ();
13+
14+ default int g () { return 1 ; }
15+ }
16+
17+ interface NotFunctional {
18+ default int g () { return 1 ; }
19+ }
20+
21+ interface FunctionalWithObjectMethods {
22+ int f ();
23+
24+ String toString ();
25+
26+ int hashCode ();
27+ }
28+
29+ }
Original file line number Diff line number Diff line change 1+ | Test.java:3:13:3:22 | Functional |
2+ | Test.java:11:13:11:34 | FunctionalWithDefaults |
3+ | Test.java:21:13:21:39 | FunctionalWithObjectMethods |
Original file line number Diff line number Diff line change 1+ import java
2+
3+ select any ( FunctionalInterface fi | fi .fromSource ( ) )
You can’t perform that action at this time.
0 commit comments