Modifier Modifier is a plugin for IntelliJ IDEA which provides hotkeys for toggling each Java declaration modifier, including static, final, private/protected/public, for the selected field, method, variable, or class declaration.
Comments and ratings are at JetBrains' IntelliJ IDEA Plugin site.
To make some fields non-final:
private final int x;
private final String y = "";
private int z;
private final Object t;
Select from anywhere on the first line to anywhere on the last line, and press Alt+Shift+F.
private int x;
private String y = "";
private int z;
private Object t;
Toggle abstract for current method or class
Cycle between private/package-private/protected/public for current field, method, constructor, or class (only package-private and public are cycled for non-inner classes)
Toggle final for current parameter, variable, field, method, or class
Toggle static for current field, method, or inner class
Toggle strictfp for current method or class
Toggle synchronized for current method
Toggle transient for current field
Toggle volatile for current field
Re-order modifiers for the current parameter, variable, field, method, or class according to your modifier order settings (configured in IDEA Settings)
To download Modifier Modifier Plugin, use the IDEA Plugin Manager. Click File->Settings to open IDEA settings, then click Plugins, then click the Available tab. Look for Modifier Modifier Plugin and click the Download button on the toolbar.The source code is available in the Documents & Files section.
These details are provided for information only. No information here is legal advice and should not be used as such.