RFR: 8263358: Update java.lang to use instanceof pattern variable [v3]
Chris Hegarty
chegar at openjdk.java.net
Fri Mar 12 17:41:11 UTC 2021
On Thu, 11 Mar 2021 16:42:24 GMT, Patrick Concannon <pconcannon at openjdk.org> wrote:
>> Hi,
>>
>> Could someone please review my code for updating the code in the `java.lang` 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:
>
> 8263358: Refactored equals methods
src/java.base/share/classes/java/lang/ProcessHandleImpl.java line 525:
> 523: return (pid == other.pid) &&
> 524: (startTime == other.startTime
> 525: || startTime == 0
This one can be a single expression. Otherwise, looks good.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2913
More information about the core-libs-dev
mailing list