< prev index next >
src/java.base/share/classes/sun/security/x509/X500Name.java
Print this page
*** 340,350 ****
* RDNs of this X500Name.
*/
public List<AVA> allAvas() {
List<AVA> list = allAvaList;
if (list == null) {
! list = new ArrayList<AVA>();
for (int i = 0; i < names.length; i++) {
list.addAll(names[i].avas());
}
}
return list;
--- 340,350 ----
* RDNs of this X500Name.
*/
public List<AVA> allAvas() {
List<AVA> list = allAvaList;
if (list == null) {
! list = new ArrayList<>();
for (int i = 0; i < names.length; i++) {
list.addAll(names[i].avas());
}
}
return list;
*** 1380,1390 ****
* Retrieve the Constructor and Field we need for reflective access
* and make them accessible.
*/
static {
PrivilegedExceptionAction<Object[]> pa =
! new PrivilegedExceptionAction<Object[]>() {
public Object[] run() throws Exception {
Class<X500Principal> pClass = X500Principal.class;
Class<?>[] args = new Class<?>[] { X500Name.class };
Constructor<X500Principal> cons = pClass.getDeclaredConstructor(args);
cons.setAccessible(true);
--- 1380,1390 ----
* Retrieve the Constructor and Field we need for reflective access
* and make them accessible.
*/
static {
PrivilegedExceptionAction<Object[]> pa =
! new PrivilegedExceptionAction<>() {
public Object[] run() throws Exception {
Class<X500Principal> pClass = X500Principal.class;
Class<?>[] args = new Class<?>[] { X500Name.class };
Constructor<X500Principal> cons = pClass.getDeclaredConstructor(args);
cons.setAccessible(true);
< prev index next >