On Thu, 2 Feb 2023 22:01:03 GMT, Sean Mullan <mul...@openjdk.org> wrote:

>> Mark Powers has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   copyright
>
> src/java.base/share/classes/java/security/MessageDigestSpi.java line 208:
> 
>> 206:     public Object clone() throws CloneNotSupportedException {
>> 207:         if (this instanceof Cloneable) {
>> 208:             var o = super.clone();
> 
> You could instead cast the return value of `super.clone` to 
> `MessageDigestSpi` and avoid the casts below.

I like that suggestion.

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

PR: https://git.openjdk.org/jdk/pull/12348

Reply via email to