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..
 
0
2 comments

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.

1

Please sign in to leave a comment.