Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
12.0, 11.3, 13
-
None
Description
NB applies incorrect java code formatting in try-with-resources (adding a space), see attached image.
it sounds silly but if you have the format on save activated, and the code repository has some sort of code style checking (my case) is impossible to commit code written with nb (you can disable format on save, but you have to format your java classes manually).
Attachments
Attachments
Issue Links
- duplicates
-
NETBEANS-4641 Code auto formatting for try-with-resources statements
- Resolved
- is duplicated by
-
NETBEANS-6129 Extra space in try with resources without nb-javac
- Resolved