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

Default formater behavior on switch expression

    XMLWordPrintableJSON

Details

    Description

      Using JDK 13 latest switch expression preview feature works very well but using default formatter option seems not works as I would expect by deleting all spaces between case value and expression arrow. One space would look nicer IMHO.

      Expected:

      switch (i) {
          case 1 ->
              System.out.println("");
      }
      

      As is:

      switch (i) {
          case 1->
              System.out.println("");
      }
      

      Attachments

        Issue Links

          Activity

            People

              graben Benjamin Graf
              graben Benjamin Graf
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m