Files
Anna.Kozlova 01eb8ca66b redundant lambda code block: warn for self suppressions so it would be suppressed by LocalInspectionPass
otherwise Redundant Suppression would report such cases as suppress comment would prevent reporting by itself
2018-09-26 17:51:41 +02:00

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;
}
}