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 240697 - [Pull Up] Leaves excess line in code
Summary: [Pull Up] Leaves excess line in code
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 11:51 UTC by ssazonov
Modified: 2014-07-03 09:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Before / After (124.53 KB, image/png)
2014-01-20 11:51 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2014-01-20 11:51:03 UTC
Created attachment 144142 [details]
Before / After

1. Create java class:

package test;

public class ClassA {

    public abstract class ClassC {
    }

    public class ClassB extends ClassC {

        public void m1() {
        }

        public void m3() {
        }

        public void m5() {
        }
    }
}

2. From main menu select Refactor > Pull Up, check m3() method and press refactor

>> There are excess blank lines in code (see attcahed image)

Product Version: NetBeans IDE Dev (Build 201401200001)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Ralph Ruijs 2014-01-20 12:04:22 UTC
Printing of the changed source code is done in Java Source, reassigning.
Comment 2 Svata Dedic 2014-07-03 09:11:50 UTC
This is just a very minor case, almost harmless.