You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Andrew (Jira)" <ji...@apache.org> on 2022/04/18 03:47:00 UTC

[jira] [Commented] (NETBEANS-4676) Bad format to try-with-resources

    [ https://issues.apache.org/jira/browse/NETBEANS-4676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523502#comment-17523502 ] 

Andrew commented on NETBEANS-4676:
----------------------------------

Confirm the same here: Netbeans 13.0, Java Azul 11, Windows 10. It shows that installed nb-javac has version 17.0.1

Would be nice to have it fixed.

> Bad format to try-with-resources
> --------------------------------
>
>                 Key: NETBEANS-4676
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4676
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Editor
>    Affects Versions: 12.0, 11.3, 13
>            Reporter: Eduard Catala
>            Priority: Major
>         Attachments: Captura de pantalla de 2020-08-03 19-14-32.png
>
>
> 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).
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists