mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
dataflow: do not treat fields with qualified this as effectively unqualified (IDEA-99722)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
abstract class Foo {
|
||||
protected String bar;
|
||||
}
|
||||
|
||||
class FF extends Foo {
|
||||
class FFI extends Foo {
|
||||
void f() {
|
||||
if (this.bar == FF.this.bar);
|
||||
if (<warning descr="Condition 'this.bar == FFI.this.bar' is always 'true'">this.bar == FFI.this.bar</warning>);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -100,6 +100,7 @@ public class DataFlowInspectionTest extends LightCodeInsightFixtureTestCase {
|
||||
|
||||
public void testPassingNullableIntoVararg() throws Throwable { doTest(); }
|
||||
public void testEqualsImpliesNotNull() throws Throwable { doTest(); }
|
||||
public void testEffectivelyUnqualified() throws Throwable { doTest(); }
|
||||
|
||||
public void testAnnotatedTypeParameters() throws Throwable {
|
||||
setupCustomAnnotations();
|
||||
|
||||
Reference in New Issue
Block a user