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 207245

Summary: Code completion adds extra new line if generics part of declaration is already present
Product: java Reporter: Jiri Prox <jiriprox>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jiri Prox 2012-01-12 22:05:54 UTC
Code completion adds unexpected extra new line if generics part of identifier is already present. 

Example:
1)user writes declaration:
ArrayList<String> a = null;

2) the he decides to change the class so he deletes the 'ArrayList' part
|<String> a = null;

3) and uses code completion to add LinkedList

=> result is:
LinkedList<Object>
    <String> a = null;

the new line after <Object> is not needed and must be deleted.
Ideally, "<Object>" is not inserted at all 


Product Version: NetBeans IDE Dev (Build 20120110-5b6dc0ca8f23)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
User directory: C:\Users\jprox\.netbeans\dev
Cache directory: C:\Users\jprox\.netbeans\dev\var\cache