From 16844eafc51fd18faa5284341f13056183277ad8 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 29 Nov 2012 13:29:12 +1100 Subject: [PATCH] jetty-9 javadoc --- .../main/java/org/eclipse/jetty/server/ServerConnector.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java index 0fcfaa9ce69..bf41a5ac7dc 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ServerConnector.java @@ -92,7 +92,8 @@ public class ServerConnector extends AbstractNetworkConnector /* ------------------------------------------------------------ */ /** Set the Server instance to be used with {@link #ServerConnector()} - * by callers from this thread. + * by callers from this thread. After use, the thread server should be + * set to null to avoid leaking the server. * @param server The server */ public static void setThreadServer(Server server) @@ -103,6 +104,7 @@ public class ServerConnector extends AbstractNetworkConnector /* ------------------------------------------------------------ */ /** Set the Server instance to be used with {@link #ServerConnector()} * by calling threads that have not called {@link #setThreadServer(Server)}. + * After use, the default server should be set to null to avoid leaking the server. * @param server The server */ public static void setDefaultServer(Server server)