mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
otherwise Redundant Suppression would report such cases as suppress comment would prevent reporting by itself
20 lines
295 B
Java
20 lines
295 B
Java
// "Remove 'CodeBlock2Expr' suppression" "false"
|
|
import java.util.*;
|
|
|
|
interface I {
|
|
int m();
|
|
}
|
|
public class SampleSafeVarargs {
|
|
|
|
{
|
|
I i = () -> {
|
|
//noinspection CodeBl<caret>ock2Expr
|
|
return foo();
|
|
};
|
|
}
|
|
|
|
int foo() {
|
|
return 1;
|
|
}
|
|
}
|