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 267891 - Java formatting moves comma on a single line alone for multiple annotations
Summary: Java formatting moves comma on a single line alone for multiple annotations
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 8
: P3 normal with 3 votes (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-06 07:27 UTC by zmirc
Modified: 2018-10-30 15:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot - comma is wrongly put alone on a single line (29.28 KB, image/png)
2016-09-06 07:27 UTC, zmirc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zmirc 2016-09-06 07:27:45 UTC
Created attachment 161917 [details]
Screenshot - comma is wrongly put alone on a single line

Hi!

Since NB DEV 201609010002 and 201609060002 (didn't happen with 201608040002 nor earlier), formatting (ALT + SHIFT + F) does a bad job with Java files that have multiple annotations in a list, by putting the comma (separating list entries) alone on a new line.

See the attached screenshot.

Ideal formatting (worked fine in NB DEV 201608040002 or earlier):
@Field(TextFolder.P_PROJECT_ID),
@Field(TextFolder.P_NAME)}, opti...

Current wrong formatting (comma goes alone on a new line):
@Field(TextFolder.P_PROJECT_ID)
,
@Field(TextFolder.P_NAME)}, opti...

Thanks in advance.
Comment 1 janinko 2018-10-30 15:30:28 UTC
+1