diff src/org/eclipse/jetty/server/Server.java @ 884:cb78ee27b0e0

remove Server.getVersion()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Oct 2016 16:30:02 -0600
parents 8c494fcd3d34
children 0d876a03ab0b
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Server.java	Tue Oct 04 16:19:54 2016 -0600
+++ b/src/org/eclipse/jetty/server/Server.java	Tue Oct 04 16:30:02 2016 -0600
@@ -30,7 +30,6 @@
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
-import org.eclipse.jetty.http.HttpGenerator;
 import org.eclipse.jetty.http.HttpURI;
 import org.eclipse.jetty.server.handler.HandlerWrapper;
 import org.eclipse.jetty.server.nio.SelectChannelConnector;
@@ -58,7 +57,7 @@
 {
 	private static final Logger LOG = LoggerFactory.getLogger(Server.class);
 
-	private static final String __version = "8";
+	public static final String version = "8";
 
 	private final AttributesMap _attributes = new AttributesMap();
 	public final ThreadPoolExecutor threadPool;
@@ -82,18 +81,10 @@
 
 
 	/* ------------------------------------------------------------ */
-	public static String getVersion()
-	{
-		return __version;
-	}
-
-
-	/* ------------------------------------------------------------ */
 	@Override
 	protected void doStart() throws Exception
 	{
-		LOG.info("jetty-"+__version);
-		HttpGenerator.setServerVersion(__version);
+		LOG.info("jetty-"+version);
 		
 		MultiException mex=new MultiException();
 
@@ -308,6 +299,6 @@
 	/* ------------------------------------------------------------ */
 	public static void main(String...args) throws Exception
 	{
-		System.err.println(getVersion());
+		System.err.println(version);
 	}
 }