jdk/src/share/classes/sun/security/ssl/Handshaker.java
changeset 7990 57019dc81b66
parent 7043 5e2d1edeb2c7
child 9035 1255eb81cc2f
--- a/jdk/src/share/classes/sun/security/ssl/Handshaker.java	Fri Jan 14 22:34:31 2011 +0000
+++ b/jdk/src/share/classes/sun/security/ssl/Handshaker.java	Fri Jan 14 15:31:45 2011 -0800
@@ -569,7 +569,7 @@
                 activeProtocols = getActiveProtocols();
             }
 
-            ArrayList<CipherSuite> suites = new ArrayList<CipherSuite>();
+            ArrayList<CipherSuite> suites = new ArrayList<>();
             if (!(activeProtocols.collection().isEmpty()) &&
                     activeProtocols.min.v != ProtocolVersion.NONE.v) {
                 for (CipherSuite suite : enabledCipherSuites.collection()) {
@@ -614,8 +614,7 @@
      */
     ProtocolList getActiveProtocols() {
         if (activeProtocols == null) {
-            ArrayList<ProtocolVersion> protocols =
-                                            new ArrayList<ProtocolVersion>(4);
+            ArrayList<ProtocolVersion> protocols = new ArrayList<>(4);
             for (ProtocolVersion protocol : enabledProtocols.collection()) {
                 boolean found = false;
                 for (CipherSuite suite : enabledCipherSuites.collection()) {