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 192629

Summary: Improve formatting of spaces for annotations
Product: java Reporter: Tomas Mysik <tmysik>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal Keywords: PLAN
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Tomas Mysik 2010-11-29 10:49:26 UTC
If one uses spaces around "=", there's no way to specify "no spaces" for annotations (this is pretty common).

Example:
@Test(a=1)
class Test {
   private a = 1;
}

Maybe this could be considered as a bug so it can be fixed for NB 7.0 FCS ? ;)

Thanks a lot, DuĊĦane!

Product Version: NetBeans IDE 7.0 Beta (Build 201011152355)
Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03
System: Linux version 2.6.36-bfs running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Tomas Mysik 2010-12-17 10:00:32 UTC
Sorry, changing to defect because formatting is quite unusable in model classes (JPA, @Column etc. annotations).

Thanks.
Comment 2 Dusan Balek 2012-02-21 12:49:10 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/4849ddcb0167
Comment 3 Quality Engineering 2012-02-22 11:02:49 UTC
Integrated into 'main-golden', will be available in build *201202220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4849ddcb0167
User: Dusan Balek <dbalek@netbeans.org>
Log: Minor Java formatting improvements (see issues #131227, #192629).