mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
invert boolean: ensure to invert default boolean initializer (IDEA-123510)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
private boolean notInitial<caret>ized;
|
||||
|
||||
public void foo() {
|
||||
if (notInitialized) {
|
||||
notInitialized = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
private boolean notInitializedInverted = true;
|
||||
|
||||
public void foo() {
|
||||
if (!notInitializedInverted) {
|
||||
notInitializedInverted = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user