mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8265426: Update java.security to use instanceof pattern variable
Reviewed-by: rriggs, weijun, dfuchs
This commit is contained in:
parent
3fcdc50e44
commit
86b8dc9f5b
23 changed files with 85 additions and 165 deletions
|
@ -181,16 +181,9 @@ public abstract class CertPath implements Serializable {
|
|||
if (this == other)
|
||||
return true;
|
||||
|
||||
if (! (other instanceof CertPath))
|
||||
return false;
|
||||
|
||||
CertPath otherCP = (CertPath) other;
|
||||
if (! otherCP.getType().equals(type))
|
||||
return false;
|
||||
|
||||
List<? extends Certificate> thisCertList = this.getCertificates();
|
||||
List<? extends Certificate> otherCertList = otherCP.getCertificates();
|
||||
return(thisCertList.equals(otherCertList));
|
||||
return other instanceof CertPath that
|
||||
&& that.getType().equals(this.type)
|
||||
&& this.getCertificates().equals(that.getCertificates());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue