[
https://issues.apache.org/jira/browse/ARTEMIS-5295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17926079#comment-17926079
]
Robbie Gemmell commented on ARTEMIS-5295:
-----------------------------------------
(Note they were preview in Java 12, and changed in Java 13 for a second
preview. Java 14 delivered the feature via https://openjdk.org/jeps/361)
> Use switch expressions where possible
> -------------------------------------
>
> Key: ARTEMIS-5295
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5295
> Project: ActiveMQ Artemis
> Issue Type: Sub-task
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
>
> Java 12 introduced a [new switch expression
> syntax|https://blogs.oracle.com/javamagazine/post/new-switch-expressions-in-java-12].
> We should use it wherever possible as it's much more concise and readable
> than the older syntax.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact