IDEA-127499 Decompiler doesn't support switch over enums

This commit is contained in:
Egor.Ushakov
2017-04-25 17:39:52 +03:00
parent 2e9dfd2437
commit a62cc3f709
12 changed files with 183 additions and 34 deletions

View File

@@ -12,6 +12,8 @@ public class TestSwitchOnEnum {
public int testSOE(TimeUnit t) {
// This creates anonymous SwitchMap inner class.
switch (t) {
case MICROSECONDS:
return 2;
case SECONDS:
return 1;
}