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 - Code completion adds extra new line if generics part of declaration is already present
Summary: Code completion adds extra new line if generics part of declaration is alread...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 22:05 UTC by Jiri Prox
Modified: 2012-01-12 22:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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