public class A { private final boolean myIsTag; private JLabel myLabel; public A(boolean isTag) { myIsTag = isTag; myLabel.setText(myIsTag ? "one" : "two"); }
If I apply the quickfix "Convert to local", it creates a local variable which is immediately highlighted as redundant:
final boolean isTag1 = isTag;
It should simply convert all usages of field to usages of parameter and not create any variables.