mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 01:34:55 +07:00
20 lines
383 B
Java
20 lines
383 B
Java
class C {
|
|
void test() {
|
|
accept(n -> n * n);
|
|
accept(n -> n * n);
|
|
|
|
accept(n -> {
|
|
int a = <weak_warning descr="Multiple occurrences of 'n * n'">n * n</weak_warning>;
|
|
int b = <weak_warning descr="Multiple occurrences of 'n * n'">n * n</weak_warning>;
|
|
return a + b;
|
|
});
|
|
}
|
|
|
|
void accept(I i) {
|
|
i.f(0);
|
|
}
|
|
|
|
interface I {
|
|
int f(int n);
|
|
}
|
|
} |