mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-27 11:07:43 +07:00
Fixes IDEA-294791 Incorrect unused/redundant assignment detection GitOrigin-RevId: 9fb4063770f5755e1418580a69951cab3434ca63
13 lines
325 B
Java
13 lines
325 B
Java
class Foo {
|
|
void test() {
|
|
int i = 5;
|
|
i += (<warning descr="The value '10' assigned to 'i' is never used">i</warning> = 10);
|
|
System.out.println(i);
|
|
}
|
|
|
|
void test2() {
|
|
int i = 5;
|
|
i += (<warning descr="The value '10' assigned to 'i' is never used">i</warning> = 10) + 1;
|
|
System.out.println(i);
|
|
}
|
|
} |