public class Plain {
@NonNls publicstaticfinalString S1 = "VAL";
@NonNls publicstaticfinalString S2 = "VALUE";
}
Go to "VAL" literal and change it to "VALUE". Duplicate literals are highlighted - Ok. Alt+Enter on the S1 value. It is suggested to replace it with S2 value. Accept - S2 is inserted and the code is not compilable.
Description
Provide a code like:
public class Plain {
@NonNls publicstaticfinalString S1 = "VAL";
@NonNls publicstaticfinalString S2 = "VALUE";
}
Go to "VAL" literal and change it to "VALUE". Duplicate literals are highlighted - Ok. Alt+Enter on the S1 value. It is suggested to replace it with S2 value. Accept - S2 is inserted and the code is not compilable.