mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
16 lines
352 B
Java
16 lines
352 B
Java
// "Invert 'if' condition" "true"
|
|
class A {
|
|
public void foo() {
|
|
String value ="not-null";
|
|
|
|
<caret>if (value != null) {
|
|
/* block*/
|
|
// Before
|
|
System.out.println(value);
|
|
/* inside */
|
|
System.out.println(value);
|
|
// After
|
|
/* end block*/
|
|
}
|
|
}
|
|
} |