mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
ensure correct expression is checked during read before write variable check (IDEA-135937)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
class Test {
|
||||
private final int x;
|
||||
|
||||
public Test(int x) {
|
||||
this.x = x;
|
||||
}
|
||||
|
||||
public static final Comparator<Test> comparator = (o1, o2) -> {
|
||||
if (o1.x == o2.x) {
|
||||
}
|
||||
<error descr="'Test.this' cannot be referenced from a static context">this</error>.x != o2.x;
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user