brettryan opened a new issue, #4859:
URL: https://github.com/apache/netbeans/issues/4859
### Description
As a software engineer I would like to allow switch expressions to format
the same as switch statements so that I can better align my code.
Currently if I were to try to format the following statement:
```java
return switch (av.type()) {
case B -> av.b().asByteArray();
case BOOL -> av.bool();
case BS -> av.bs().stream()
.map(SdkBytes::asByteArray)
.collect(toList());
default -> null;
}
```
It will be formatted as:
```java
return switch (av.type()) {
case B ->
av.b().asByteArray();
case BOOL ->
av.bool();
case BS ->
av.bs().stream()
.map(SdkBytes::asByteArray)
.collect(toList());
default -> null;
}
```
This makes the statement decidedly less readable and does not align with my
switch statement settings.
### Use case/motivation
Allow for better readability and consistency with switch statements.
Willing to contribute with guidance.
### Related issues
_No response_
### Are you willing to submit a pull request?
Yes
### Code of Conduct
Yes
--
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