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 200197 - some regression in indentation?
Summary: some regression in indentation?
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-18 03:27 UTC by David Konecny
Modified: 2011-07-19 13:56 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 David Konecny 2011-07-18 03:27:11 UTC
In:

Product Version: NetBeans IDE Dev (Build 20110715-4dc6db00a4a3)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Linux version 2.6.35-30-generic running on amd64; UTF-8; en_NZ (nb)
Userdir: /home/david/.netbeans/_UD4

I noticed that if I have statement like this:

        InputStreamReader rr = new InputStreamReader(io, (CharsetDecoder) null);

and press Enter in it three times to end up with:

        InputStreamReader rr = 
                new InputStreamReader(
                        io, 
                        (CharsetDecoder) null);

it seem to be OK although for some reason my sub-indent is 8 characters. But if I reformat the code with Shift+Alt+F I end with:

        InputStreamReader rr =
                new InputStreamReader(
                io,
                (CharsetDecoder) null);

If it is not a serious regression then feel free to lower to P3.
Comment 1 Dusan Balek 2011-07-18 11:13:46 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/85cb91b82d13
Comment 2 Quality Engineering 2011-07-19 13:56:02 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/85cb91b82d13
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #200197: some regression in indentation? - fixed.