RFR: 8263668: Update java.time to use instanceof pattern variable [v6]
Patrick Concannon
pconcannon at openjdk.java.net
Wed Apr 21 11:06:20 UTC 2021
On Wed, 21 Apr 2021 09:06:45 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Patrick Concannon has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Updated single letter pattern variable names
>
> src/java.base/share/classes/java/time/Duration.java line 723:
>
>> 721: }
>> 722: if (unit instanceof ChronoUnit u) {
>> 723: switch (u) {
>
> Maybe `u` could be replaced with `chronoUnit` here too
Variable name updated as suggested in 3dc1e07
-------------
PR: https://git.openjdk.java.net/jdk/pull/3170
More information about the core-libs-dev
mailing list