invert boolean for anonymous classes (IDEA-71076)

This commit is contained in:
anna
2011-06-20 21:21:07 +04:00
parent b130e75e43
commit 91d3996e1c
4 changed files with 53 additions and 2 deletions
@@ -0,0 +1,23 @@
abstract class DemoInvertBoolean {
boolean b;
DemoInvertBoolean(boolean <caret>b) {
this.b = b;
}
DemoInvertBoolean() {
this(true);//this true will be inverted
}
abstract void f1();
public static void main(String[] args) {
DemoInvertBoolean demo = new DemoInvertBoolean(true) {//this true will not be inverted
@Override
public void f1() {
}
};
}
}