This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 070612) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Linux version 2.6.16-1.2122_FC5 running on i386; UTF-8; en_US (nb) Example: class Bean { String name; public Bean clone() { Bean ret = new Bean(); ret.name = name; return ret; } } The line "ret.name = name;" is annotated by warning 'Assignment To Itself'.
the same in public Point locationSuggested(Widget widget, Point originalLocation, Point suggestedLocation) { suggestedLocation.x=originalLocation.x;//<-- warning
Yes it will probably have many duplicates. The test is currently done by element (which is per type) and thus does not take the variables in member selects into account.
Checking in AssignmentToItself.java; /cvs/java/hints/src/org/netbeans/modules/java/hints/AssignmentToItself.java,v <-- AssignmentToItself.java new revision: 1.5; previous revision: 1.4 done
verified
*** Issue 110495 has been marked as a duplicate of this issue. ***
this is still present as of the 6 august build
Checking in AssignmentToItself.java; /cvs/java/hints/src/org/netbeans/modules/java/hints/AssignmentToItself.java,v <-- AssignmentToItself.java new revision: 1.6; previous revision: 1.5 done
yup. can we turn the option back on again by default?
it works for me