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 2018/05/29 20:10:57 UTC

svn commit: r1832478 - /tomcat/trunk/java/org/apache/tomcat/util/http/parser/Host.java

Author: markt
Date: Tue May 29 20:10:56 2018
New Revision: 1832478

URL: http://svn.apache.org/viewvc?rev=1832478&view=rev
Log:
Prevent creation of utility class

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/http/parser/Host.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/parser/Host.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/parser/Host.java?rev=1832478&r1=1832477&r2=1832478&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/parser/Host.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/parser/Host.java Tue May 29 20:10:56 2018
@@ -25,6 +25,11 @@ import org.apache.tomcat.util.buf.Messag
 
 public class Host {
 
+    private Host() {
+        // Utility class. Hide default constructor.
+    }
+
+
     /**
      * Parse the given input as a HTTP Host header value.
      *



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