mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 20:54:49 +07:00
Fixes EA-1080132 - ISE: MethodCallInstruction.getMethodResultValue (String.trim, Enum.name) GitOrigin-RevId: 3ab2fe4fac1d9333d0a61198d2614eead74a173c
19 lines
485 B
Java
19 lines
485 B
Java
class Scratch {
|
|
void test(String codeblock) {
|
|
if (codeblock.trim().equals("{")) {
|
|
if (<warning descr="Condition 'codeblock.equals(\"}\")' is always 'false'">codeblock.equals("}")</warning>) {
|
|
System.out.println(codeblock.trim());
|
|
}
|
|
}
|
|
}
|
|
|
|
enum E {A, B, C}
|
|
|
|
void test(E e) {
|
|
if (e.name().equals("C")) {
|
|
if (<warning descr="Condition 'e == E.A' is always 'false'">e == E.A</warning>) {
|
|
System.out.println(e.name());
|
|
}
|
|
}
|
|
}
|
|
} |