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 253887 - [81cat] Remove empty line when safely deleting a method
Summary: [81cat] Remove empty line when safely deleting a method
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-28 09:36 UTC by cezariusz
Modified: 2015-07-28 09:36 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 cezariusz 2015-07-28 09:36:28 UTC
Product Version: NetBeans IDE Dev (Build 201507280002)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 8 version 6.2 running on amd64; UTF-8; pl_PL (nb)

Let's say I have the following code:

public class SafeDelete {

    public void method1() {
    }

    public void method2() {
    }

    public void method3() {
    }

    public void method4() {
    }

}

I safely delete method2 and method3, so I get this:

public class SafeDelete {

    public void method1() {
    }



    public void method4() {
    }

}

Now have to manually remove empty lines (and repeat this after each refactoring).

So the idea is that Safe Delete should remove one blank line if the method is surrounded with blank lines.