8267587: Update java.util to use enhanced switch #4161
Inspired by PR#4088. Most of the changes are done automatically using IntelliJ IDEA refactoring. Some manual adjustments are also performed, including indentations, moving comments, extracting common cast out of switch expression branches, etc.
I also noticed that there are some switches having one branch only in JapaneseImperialCalendar.java. Probably it would be better to replace them with
The text was updated successfully, but these errors were encountered:
@amaembo This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been no new commits pushed to the
@amaembo Since your change was applied there have been 4 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit ab5a7ff.