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

Incorrect brace spacing in try-with-resources

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.2, 11.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      Given:

      try (Session session = scope.getSession())

      Invoking code-format results in:

      try ( Session session = scope.getSession())

      in spite of the fact that the IDE is configured not to insert a space inside the parenthesis.

        Attachments

        1. defaults.zip
          2 kB
          Ben Alex

          Issue Links

            Activity

              People

              • Assignee:
                cowwoc Gili
                Reporter:
                cowwoc Gili
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: