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 220856 - Formatting configurations for annotations
Summary: Formatting configurations for annotations
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-25 15:11 UTC by LorenzSchumann
Modified: 2012-10-25 15:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Formatted fields with annotations (1.42 KB, text/plain)
2012-10-25 15:11 UTC, LorenzSchumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LorenzSchumann 2012-10-25 15:11:56 UTC
Created attachment 126557 [details]
Formatted fields with annotations

Looking at the settings of formatting/java/blank lines there is no way to configure "before annotated field".

The reason one would want that option is to configure fields without annotations without lank lines:

private int a;
private int b;
private int c;

But when annotations are used you may want to configure a blank line before the first annotation. Otherwise you end up like in my real world example (using JPA) i have attached - that snippet of a class was formatted with default Java settings.
(For obfuscation every field and every column is named "a").