mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-analysis] javaSimplePropertyGist: remove the getter/setter name restriction
Now, index can map getter/setter -> field for any name, not only with get/set/is prefix. This is already done for bytecode index, now for source index as well Follow-up for IDEA-364131 GitOrigin-RevId: c8c0e09d94a12bfedf575f5aa3f2d79dabe34834
This commit is contained in:
committed by
intellij-monorepo-bot
parent
48256799bb
commit
050920691a
+15
@@ -0,0 +1,15 @@
|
||||
|
||||
record Test2(int x, int y) {
|
||||
static void test(Test2 test2) {
|
||||
if (test2.x() == test2.y()) {
|
||||
if (<warning descr="Condition 'test2.x == test2.y' is always 'true'">test2.x == test2.y</warning>) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public int x() {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user