<i18n dev> RFR: 8267587: Update java.util to use enhanced switch [v4]
Tagir F.Valeev
tvaleev at openjdk.java.net
Tue May 25 11:39:02 UTC 2021
> 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 one additional commit since the last revision:
Vertical alignment for single-line switch rules
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/4161/files
- new: https://git.openjdk.java.net/jdk/pull/4161/files/07a998bc..82f40605
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4161&range=03
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4161&range=02-03
Stats: 54 lines in 10 files changed: 2 ins; 0 del; 52 mod
Patch: https://git.openjdk.java.net/jdk/pull/4161.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4161/head:pull/4161
PR: https://git.openjdk.java.net/jdk/pull/4161
More information about the i18n-dev
mailing list