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

Key: IDEABKL-5337
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Anna Kozlova
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

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

Locate duplicates: unary plus and minus make expressions different

Created: 09 Aug 07 16:29   Updated: 03 Dec 07 20:41
Component/s: Code Analysis. Duplicates
Affects Version/s: None
Fix Version/s: None

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

Build: 7,201


 Description  « Hide
Provide code like:
public int meth1() {
	return 2 * (1 + 1) * (1 + 2);
  }

  public int meth2() {
	return 2 * (1 + 1) * (3 + 4);
  }
}

Find duplicates (settings: do not show simpler than = 10; anonymize simpler than = 0). Two methods are detected as duplicates.
Now change '4' token to '-4'. Re-run locate duplicates. No duplicates found.
Same effect for unary plus: '+4'.



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