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 223362 - Incorrect indentation after running hint
Summary: Incorrect indentation after running hint
Status: RESOLVED DUPLICATE of bug 197865
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 06:12 UTC by Tomas Mysik
Modified: 2012-12-06 07:01 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 Tomas Mysik 2012-12-06 06:12:09 UTC
Sample:

public class Test {

    Test a() {
        return this;
    }

    String b() {
        return null;
    }

    static void test() {
        new Test()
                .a()
                .b(); // invoke "Assign Return Value to New Variable" hint
    }

}

Once the hint is invoked, all three lines are indented - but only the first one should be.

Thanks.

Product Version: NetBeans IDE Dev (Build 20121204-b5f695999ec3)
Java: 1.6.0_37; Java HotSpot(TM) 64-Bit Server VM 20.12-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_37-b06
System: Linux version 3.5.0-19-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Jan Lahoda 2012-12-06 07:01:32 UTC

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