You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2017/10/05 09:15:25 UTC

svn commit: r1811176 - /tomcat/trunk/java/org/apache/tomcat/util/net/SSLHostConfig.java

Author: markt
Date: Thu Oct  5 09:15:25 2017
New Revision: 1811176

URL: http://svn.apache.org/viewvc?rev=1811176&view=rev
Log:
Long.valueOf() is better than new Long()

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/SSLHostConfig.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/SSLHostConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/SSLHostConfig.java?rev=1811176&r1=1811175&r2=1811176&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/SSLHostConfig.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/SSLHostConfig.java Thu Oct  5 09:15:25 2017
@@ -68,11 +68,11 @@ public class SSLHostConfig implements Se
 
     private String hostName = DEFAULT_SSL_HOST_NAME;
 
-    private transient Long openSslConfContext = new Long(0);
+    private transient Long openSslConfContext = Long.valueOf(0);
     // OpenSSL can handle multiple certs in a single config so the reference to
     // the context is here at the virtual host level. JSSE can't so the
     // reference is held on the certificate.
-    private transient Long openSslContext = new Long(0);
+    private transient Long openSslContext = Long.valueOf(0);
 
     // Configuration properties
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org