History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-12606
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Replace duplicate strings with constant incorrectly consider the order of declarations

Created: 13 Dec 06 20:39   Updated: 13 Dec 06 20:39
Component/s: Code Analysis. Duplicates
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,595


 Description  « Hide
Provide a code like:
public class Plain {
	@NonNls public static final String S1 = "VAL";
	@NonNls public static final String 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.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.