<i18n dev> RFR: 8268469: Update java.time to use switch expressions [v3]

Patrick Concannon pconcannon at openjdk.java.net
Wed Jun 16 11:14:45 UTC 2021


On Wed, 9 Jun 2021 22:11:59 GMT, Stephen Colebourne <scolebourne at openjdk.org> wrote:

>> Patrick Concannon has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
>> 
>>  - 8268469: Removed excessive spacing; corrected misplaced comments
>>  - Merge remote-tracking branch 'origin/master' into JDK-8268469
>>  - Merge remote-tracking branch 'origin/master' into JDK-8268469
>>  - 8268469: Update java.time to use switch expressions
>
> src/java.base/share/classes/java/time/chrono/ThaiBuddhistDate.java line 331:
> 
>> 329:                     yield with(isoDate.withYear(nvalue - YEARS_DIFFERENCE));
>> 330:                 }
>> 331:                 case ERA -> with(isoDate.withYear((1 - getProlepticYear()) - YEARS_DIFFERENCE));
> 
> `checkValidIntValue` performs validation, so removing it has changed the behavoiur

Changes reverted. See 2ae4a57

-------------

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


More information about the i18n-dev mailing list