Fixed potential thread-safety issue. Credits to Sebb

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@756157 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2009-03-19 19:53:53 +00:00
parent 4726814033
commit ac3eefa92a
1 changed files with 2 additions and 4 deletions

View File

@ -421,8 +421,7 @@ public abstract class AbstractHttpClient implements HttpClient {
} }
// TODO - should this be synch? Is remove MT safe? public synchronized void removeResponseInterceptorByClass(Class<? extends HttpResponseInterceptor> clazz) {
public void removeResponseInterceptorByClass(Class<? extends HttpResponseInterceptor> clazz) {
getHttpProcessor().removeResponseInterceptorByClass(clazz); getHttpProcessor().removeResponseInterceptorByClass(clazz);
} }
@ -452,8 +451,7 @@ public abstract class AbstractHttpClient implements HttpClient {
} }
// TODO - should this be synch? Is remove MT safe? public synchronized void removeRequestInterceptorByClass(Class<? extends HttpRequestInterceptor> clazz) {
public void removeRequestInterceptorByClass(Class<? extends HttpRequestInterceptor> clazz) {
getHttpProcessor().removeRequestInterceptorByClass(clazz); getHttpProcessor().removeRequestInterceptorByClass(clazz);
} }