On Tue, 20 Apr 2021 17:46:38 GMT, Patrick Concannon <[email protected]>
wrote:
>> Hi,
>>
>> Could someone please review my code for updating the code in the `java.time`
>> package to make use of the `instanceof` pattern variable?
>>
>> Kind regards,
>> Patrick
>
> 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
-------------
PR: https://git.openjdk.java.net/jdk/pull/3170