dubreuia/intellij-plugin-save-actions

Incorrect action with Enum

Opened this issue · 0 comments

Describe the bug
In my code, there is a switch block:

switch (someEnum) {
    case A:
        ...
    case B:
        ...
}

And I choose Save-Action option: "Add class qualifier to static member access outside declaring class".

Then when I save, the code will be changed to below:

switch (someEnum) {
    case SomeEnum.A:
        ...
    case SomeEnum.B:
        ...
}

there is a syntax error in the code