mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
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
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// "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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user