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 192143 - Autoformat indents anonymous class declaration each time more.
Summary: Autoformat indents anonymous class declaration each time more.
Status: RESOLVED DUPLICATE of bug 191786
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-11-18 23:14 UTC by converginglight
Modified: 2010-11-19 08:58 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 converginglight 2010-11-18 23:14:10 UTC
Since Netbeans 7.0 beta, following regression in autoformatter occurs:

After each autoformatting, one more white space is inserted before the open curled brace ("{").

7.0 RC2 didn't have this bug.

NOTE: I observed this behavior already in some older betas of 6.9, but this was fixed afterwards. I don't know the bug ID.


= = = = = = = = = =
EXAMPLE CODE
= = = = = = = = = =

public class _NBFormattingRegression {

	// first "autoformat"
	private final Runnable r1 = new Runnable() { // <-- !!!

		@Override
		public void run() {
		}

	};

	// second "autoformat"
	private final Runnable r2 = new Runnable()  { // <-- !!!

		@Override
		public void run() {
		}

	};

	// third "autoformat"
	private final Runnable r3 = new Runnable()   { // <-- !!!

		@Override
		public void run() {
		}

	};

	// and to infinity and beyond! ;)
}
Comment 1 Dusan Balek 2010-11-19 08:58:10 UTC
Already fixed.

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