-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Enhance switch statements #2705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
4 tasks
jxblum
added a commit
to jxblum/spring-data-redis
that referenced
this issue
Sep 11, 2023
Closes spring-projects#2705 Original pull request: spring-projects#2706
jxblum
added a commit
to jxblum/spring-data-redis
that referenced
this issue
Sep 11, 2023
Closes spring-projects#2705 Original pull request: spring-projects#2706
jxblum
added a commit
to jxblum/spring-data-redis
that referenced
this issue
Sep 11, 2023
See spring-projects#2705 Original pull request: spring-projects#2706
jxblum
pushed a commit
to jxblum/spring-data-redis
that referenced
this issue
Sep 11, 2023
Remove unused default branches. Closes spring-projects#2705 Original pull request: spring-projects#2706
jxblum
added a commit
to jxblum/spring-data-redis
that referenced
this issue
Sep 11, 2023
See spring-projects#2705 Original pull request: spring-projects#2706
jxblum
pushed a commit
to jxblum/spring-data-redis
that referenced
this issue
Sep 12, 2023
Remove unused default branches. Closes spring-projects#2705 Original pull request: spring-projects#2706
jxblum
added a commit
to jxblum/spring-data-redis
that referenced
this issue
Sep 12, 2023
See spring-projects#2705 Original pull request: spring-projects#2706
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Traditional switch statements are not very readable. But with Java 17's support for enhanced switch expressions.
it's possible to make them concise and readable. An example is shown below.
AS-IS
TO-BE
The text was updated successfully, but these errors were encountered: