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 198230 - "Assign Return Value To New Variable" removes blank lines above
Summary: "Assign Return Value To New Variable" removes blank lines above
Status: RESOLVED DUPLICATE of bug 150783
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-02 01:57 UTC by pekarna
Modified: 2011-05-02 02:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pekarna 2011-05-02 01:57:16 UTC
STR:

1) Have a method with such code:
------------------------
int a = 1;

System.currentTimeMillis();
------------------------

2) Put the cursor to System
3) press Alt+Enter
4) Choose "Assign Return Value To New Variable"

Result:

------------------------
     int a = 1;
      long currentTimeMillis = System.currentTimeMillis();
------------------------

IMHO, this operation should not affect blank characters at all - simply prepend the type, variable name, and = (with respect to formatting settings).
Comment 1 pekarna 2011-05-02 02:02:32 UTC
Duplicate.

Other "Assign Return Value To New Variable" bugs:
http://netbeans.org/bugzilla/buglist.cgi?quicksearch=Assign+Return+Value+To+New+Variable

*** This bug has been marked as a duplicate of bug 150783 ***