dubreuia / intellij-plugin-save-actions

Supports configurable, Eclipse like, save actions, including "organize imports", "reformat code" and "rearrange code".
MIT License
531 stars 101 forks source link

Incorrect action with Enum #406

Open jiyujie880621 opened 2 years ago

jiyujie880621 commented 2 years ago

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