< prev index next >

src/java.base/share/classes/sun/security/x509/X500Name.java

Print this page

        

@@ -340,11 +340,11 @@
      * RDNs of this X500Name.
      */
     public List<AVA> allAvas() {
         List<AVA> list = allAvaList;
         if (list == null) {
-            list = new ArrayList<AVA>();
+            list = new ArrayList<>();
             for (int i = 0; i < names.length; i++) {
                 list.addAll(names[i].avas());
             }
         }
         return list;

@@ -1380,11 +1380,11 @@
      * Retrieve the Constructor and Field we need for reflective access
      * and make them accessible.
      */
     static {
         PrivilegedExceptionAction<Object[]> pa =
-                new PrivilegedExceptionAction<Object[]>() {
+                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 >