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

Formatting issue in Switch Expression(JDK-12)

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

       

       

      enum colors {RED,BLUE};

      colors color = colors.RED;

      int i = switch(color)

      { case RED -> break 6; default -> break 7; }

      ;

      On Alt+Shft+F formatting should happen properly.

      Currently formatting is incorrect.

       

       

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            arunava.sinha ARUNAVA SINHA
            arunava.sinha ARUNAVA SINHA
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 1h 10m
                1h 10m

                Slack

                  Issue deployment