mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8291509: Minor cleanup could be done in sun.security
Reviewed-by: weijun
This commit is contained in:
parent
6beeb8471c
commit
4cec141a90
298 changed files with 2650 additions and 3262 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -126,7 +126,7 @@ public class SubjectInfoAccessExtension extends Extension
|
|||
throw new IOException("Invalid encoding for " +
|
||||
"SubjectInfoAccessExtension.");
|
||||
}
|
||||
accessDescriptions = new ArrayList<AccessDescription>();
|
||||
accessDescriptions = new ArrayList<>();
|
||||
while (val.data.available() != 0) {
|
||||
DerValue seq = val.data.getDerValue();
|
||||
AccessDescription accessDescription = new AccessDescription(seq);
|
||||
|
@ -202,7 +202,7 @@ public class SubjectInfoAccessExtension extends Extension
|
|||
public void delete(String name) throws IOException {
|
||||
if (name.equalsIgnoreCase(DESCRIPTIONS)) {
|
||||
accessDescriptions =
|
||||
Collections.<AccessDescription>emptyList();
|
||||
Collections.emptyList();
|
||||
} else {
|
||||
throw new IOException("Attribute name [" + name +
|
||||
"] not recognized by " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue