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.

Bug 142281

Summary: [65cat] Assign return value gives duplicate assignment
Product: java Reporter: dynamite <dynamite>
Component: RefactoringAssignee: issues@ide <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description dynamite 2008-07-30 17:49:54 UTC
[ BUILD # : 200807300201 ]
[ JDK VERSION : 1.6.0_07 ]

 new HashSet<String>();

place carrot over HashSet and choose the "Assign Return Value To New
Variable" refactoring and you get

HashSet<String> hashSet = HashSet<String> hashSet = new
HashSet<String>();

With the carrot after the first hashSet variable.
Comment 1 Petr Dvorak 2008-07-30 18:00:02 UTC

*** This issue has been marked as a duplicate of 142199 ***