Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4676

Bad format to try-with-resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.0, 11.3, 13
    • 16
    • java - Editor
    • 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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              indiketa Eduard Catala
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: