mirror of
https://github.com/github/codeql.git
synced 2026-03-24 16:36:57 +01:00
30 lines
407 B
Java
30 lines
407 B
Java
public class Test {
|
|
|
|
interface Functional {
|
|
int f();
|
|
}
|
|
|
|
class Concrete implements Functional {
|
|
public int f() { return 0; }
|
|
}
|
|
|
|
interface FunctionalWithDefaults {
|
|
int f();
|
|
|
|
default int g() { return 1; }
|
|
}
|
|
|
|
interface NotFunctional {
|
|
default int g() { return 1; }
|
|
}
|
|
|
|
interface FunctionalWithObjectMethods {
|
|
int f();
|
|
|
|
String toString();
|
|
|
|
int hashCode();
|
|
}
|
|
|
|
}
|