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

Summary: [Pull Up] Leaves excess line in code
Product: java Reporter: ssazonov
Component: SourceAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Before / After

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.