mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -597,10 +597,9 @@ public class X509CRLSelector implements CRLSelector {
|
|||
* {@code false} otherwise
|
||||
*/
|
||||
public boolean match(CRL crl) {
|
||||
if (!(crl instanceof X509CRL)) {
|
||||
if (!(crl instanceof X509CRL xcrl)) {
|
||||
return false;
|
||||
}
|
||||
X509CRL xcrl = (X509CRL)crl;
|
||||
|
||||
/* match on issuer name */
|
||||
if (issuerNames != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue