Code Formatting removing redundant keywords
Answered
on formatting interface constant declared as
public static final String BACKEND = "backend";
is changed to
String BACKEND = "backend";
Anyways to suppress such happening.. as when we refactor the interaction to class, we need to make sure it is clear that it is a public static final variable..
Please sign in to leave a comment.
You can press Ctrl+Shift+Alt+L to invoke Reformat File dialog > disable the Code cleanup option. This will disable applying quick fixes for code cleanup intentions when reformatting your file.
The mentioned intention is called Unnecessary modifier and you can also disable this specific intention by clicking on the yellow light bulb next to the line in editor > Cleanup code > Edit cleanup profile settings > disable the checkbox next to Unnecessary modifier inspection.
thank you..