[java-decompiler] fixes enum constant initializer decompilation (IDEA-154547)

This commit is contained in:
Roman Shevchenko
2016-04-11 21:42:48 +02:00
parent a57e42690b
commit 1ac2304d60
6 changed files with 26 additions and 18 deletions

View File

@@ -21,16 +21,18 @@ public enum TestEnum {
@Override
public void m() { }
},
E3("-"),
E4("+") {
E3("-", Type.ODD),
E4("+", Type.EVEN) {
@Override
public void m() { }
};
private enum Type {ODD, EVEN}
public void m() { }
private String s;
private TestEnum() { this("?"); }
private TestEnum(@Deprecated String s) { this.s = s; }
private TestEnum() { this("?", null); }
private TestEnum(@Deprecated String s, Type t) { this.s = s; }
}