diff options
Diffstat (limited to 'plugins/InspectionGadgets/testsrc/com/siyeh/ig/style/UnnecessaryThisInspectionTest.java')
-rw-r--r-- | plugins/InspectionGadgets/testsrc/com/siyeh/ig/style/UnnecessaryThisInspectionTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/InspectionGadgets/testsrc/com/siyeh/ig/style/UnnecessaryThisInspectionTest.java b/plugins/InspectionGadgets/testsrc/com/siyeh/ig/style/UnnecessaryThisInspectionTest.java index 0dad14e4009b..f3393eb74e24 100644 --- a/plugins/InspectionGadgets/testsrc/com/siyeh/ig/style/UnnecessaryThisInspectionTest.java +++ b/plugins/InspectionGadgets/testsrc/com/siyeh/ig/style/UnnecessaryThisInspectionTest.java @@ -134,6 +134,13 @@ public class UnnecessaryThisInspectionTest extends LightInspectionTestCase { } + public void testLambdaMethodRefSelfRefs() { + doTest("class Main {" + + " Runnable lambdaExpression = () -> System.out.println(this.lambdaExpression);" + + " Runnable methodReference = this.methodReference::run;" + + "}"); + } + @Override protected LocalInspectionTool getInspection() { return new UnnecessaryThisInspection(); |