HTTPCLIENT-758: Fixed the use of generics in AbstractHttpClient #removeRequestInterceptorByClass and #removeResponseInterceptorByClass

Contributed by Johannes Koch <johannes.koch at fit.fraunhofer.de>
Reviewed by Oleg Kalnichevski




git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@635675 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2008-03-10 20:00:15 +00:00
parent f25c8c1f77
commit c84d594f75
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,10 @@
Changes since 4.0 Alpha 3
-------------------
* [HTTPCLIENT-758] Fixed the use of generics in AbstractHttpClient
#removeRequestInterceptorByClass and #removeResponseInterceptorByClass
Contributed by Johannes Koch <johannes.koch at fit.fraunhofer.de>
* [HTTPCLIENT-749] HttpParams beans
Contributed by Stojce Dimski <sdmiski at yahoo.it>

View File

@ -379,7 +379,7 @@ public abstract class AbstractHttpClient implements HttpClient {
}
public void removeResponseInterceptorByClass(Class<HttpResponseInterceptor> clazz) {
public void removeResponseInterceptorByClass(Class<? extends HttpResponseInterceptor> clazz) {
getHttpProcessor().removeResponseInterceptorByClass(clazz);
}
@ -409,7 +409,7 @@ public abstract class AbstractHttpClient implements HttpClient {
}
public void removeRequestInterceptorByClass(Class<HttpRequestInterceptor> clazz) {
public void removeRequestInterceptorByClass(Class<? extends HttpRequestInterceptor> clazz) {
getHttpProcessor().removeRequestInterceptorByClass(clazz);
}