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 239613

Summary: [Flip operands of '+'] should keep indent
Product: java Reporter: ssazonov
Component: HintsAssignee: 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 2013-12-18 13:20:05 UTC
Created attachment 143304 [details]
Before / After

1. Create simple java class:

package test;

public class ClassA {

    public void m() {
        String s = "aaa" + // aaa
                   "bbb";  // bbb
    }   
}

2. Put caret onto line "String s = ...", using Alt+Enter invoke hint "Flip operands of '+'", click it

>> Indent has been broke and comments may have been flipped as well (see image)

Product Version: NetBeans IDE Dev (Build 201312110002)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Martin Balin 2016-07-07 07:19:16 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss