mrj760 opened a new issue, #7326:
URL: https://github.com/apache/netbeans/issues/7326

   ### Apache NetBeans version
   
   Apache NetBeans 21
   
   ### What happened
   
   Issue with Options -> Formatting -> Java -> Wrapping.
   Options set to....
   Case Statements: Never
   Lambda Arrow: Never
   
   Yet when using auto-format on the following, it turns into the next example.
   
   ```
   var foo = switch(type) {
       case NORTH -> "Santa Claus";
       case SOUTH -> "Scientist";
       default -> "Agent Smith";
   }
   ```
   
   Turns to: 
   
   ```
   var foo = switch(type) {
       case NORTH -> 
           "Santa Claus";
       case SOUTH -> 
           "Scientist";
       default -> 
           "Agent Smith";
   }
   ```
   
   ### Language / Project Type / NetBeans Component
   
   Java Maven Project
   
   ### How to reproduce
   
   
![image](https://github.com/apache/netbeans/assets/47433460/20f70ac8-9ff8-425a-9bd9-55b9bbc25090)
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10
   
   ### JDK
   
   jdk-21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to