RFR: 8267587: Update java.util to use enhanced switch [v6]

Iris Clark iris at openjdk.java.net
Wed May 26 02:30:13 UTC 2021

On Wed, 26 May 2021 02:22:42 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:

>> 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 `if` statement?
> Tagir F. Valeev has updated the pull request incrementally with two additional commits since the last revision:
>  - JapaneseImperialCalendar: use switch expressions
>  - Use yield in java.util.Calendar.Builder.build

Marked as reviewed by iris (Reviewer).


PR: https://git.openjdk.java.net/jdk/pull/4161

More information about the security-dev mailing list