Skip to content
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

migrate to Java 17 switch semantics: extras #575

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

gireeshpunathil
Copy link
Contributor

replace legacy switch block with java 17 semantics:

  1. short-circuit initialization in the switch expression
  2. default case match with the original initialization
  3. reduce complex boolean expression to an elegant form

Refs: #570 (review)

/cc @HannesWell

replace legacy switch block with java 17 semantics:
1. short-circuit initialization in the switch expression
2. default case match with the original initialization
3. reduce complex boolean expression to an elegant form

Refs: eclipse-pde#570 (review)
@github-actions
Copy link

github-actions bot commented Apr 13, 2023

Test Results

   234 files  ±0     234 suites  ±0   46m 47s ⏱️ +46s
3 279 tests ±0  3 253 ✔️ ±0  24 💤 ±0  1 ±0  1 🔥 ±0 
7 410 runs  ±0  7 360 ✔️ ±0  48 💤 ±0  1 ±0  1 🔥 ±0 

For more details on these failures and errors, see this check.

Results for commit 1017fe0. ± Comparison against base commit 263fc98.

♻️ This comment has been updated with latest results.

Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you!
And thanks Ed for the review.

@HannesWell HannesWell merged commit d0a3839 into eclipse-pde:master Apr 13, 2023
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants