mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
invert boolean for anonymous classes (IDEA-71076)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
abstract class DemoInvertBoolean {
|
||||
|
||||
boolean b;
|
||||
|
||||
DemoInvertBoolean(boolean <caret>bInverted) {
|
||||
this.b = !bInverted;
|
||||
}
|
||||
|
||||
DemoInvertBoolean() {
|
||||
this(false);//this true will be inverted
|
||||
}
|
||||
|
||||
abstract void f1();
|
||||
|
||||
public static void main(String[] args) {
|
||||
DemoInvertBoolean demo = new DemoInvertBoolean(false) {//this true will not be inverted
|
||||
@Override
|
||||
public void f1() {
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user