Static variables need to be final (or access should be synchronised): ---------------------------------------------------------------------
Key: HTTPCLIENT-767 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-767 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpConn Environment: Current trunk (https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk r652021) Reporter: Sebb Static variables need to be final (or access should be synchronised): Index: module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java =================================================================== --- module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java (revision 652021) +++ module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java (working copy) @@ -53,7 +53,7 @@ public static final int DEFAULT_MAX_TOTAL_CONNECTIONS = 20; /** The default maximum number of connections allowed per host */ - private static ConnPerRoute DEFAULT_CONN_PER_ROUTE = new ConnPerRoute() { + private static final ConnPerRoute DEFAULT_CONN_PER_ROUTE = new ConnPerRoute() { public int getMaxForRoute(HttpRoute route) { return ConnPerRouteBean.DEFAULT_MAX_CONNECTIONS_PER_ROUTE; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]