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

Unwanted wrapping after annotation if before type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.2
    • None
    • None

    Description

      • Go to Preferences \ Editor \ Formatting \ Java \ Wrapping
      • Select Annotations: Never
      • Go to a file with a line like

          public @Nullable String middleName;

      • Format either the line or the file
      • The line becomes split:{{}}

          public @Nullable

          String middleName;

      • If the annotation is before public rather than String, then the newline isn't inserted.

      This may look minor, but requires having our source not the way we want to, so it's quite annoying.

      Attachments

        Activity

          People

            Unassigned Unassigned
            entonio Antonio Marques
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: