CloseableHttpResponseProxy.java (httpcomponents-client-4.5.6-src) | : | CloseableHttpResponseProxy.java (httpcomponents-client-4.5.7-src) | ||
---|---|---|---|---|
skipping to change at line 43 | skipping to change at line 43 | |||
import java.lang.reflect.InvocationTargetException; | import java.lang.reflect.InvocationTargetException; | |||
import java.lang.reflect.Method; | import java.lang.reflect.Method; | |||
import java.lang.reflect.Proxy; | import java.lang.reflect.Proxy; | |||
import org.apache.http.HttpEntity; | import org.apache.http.HttpEntity; | |||
import org.apache.http.HttpResponse; | import org.apache.http.HttpResponse; | |||
import org.apache.http.client.methods.CloseableHttpResponse; | import org.apache.http.client.methods.CloseableHttpResponse; | |||
import org.apache.http.util.EntityUtils; | import org.apache.http.util.EntityUtils; | |||
/** | /** | |||
* @since 4.3 | * @deprecated Do not use. | |||
*/ | */ | |||
@Deprecated | @Deprecated | |||
class CloseableHttpResponseProxy implements InvocationHandler { | class CloseableHttpResponseProxy implements InvocationHandler { | |||
private final static Constructor<?> CONSTRUCTOR; | private final static Constructor<?> CONSTRUCTOR; | |||
static { | static { | |||
try { | try { | |||
CONSTRUCTOR = Proxy.getProxyClass(CloseableHttpResponseProxy.class.g etClassLoader(), | CONSTRUCTOR = Proxy.getProxyClass(CloseableHttpResponseProxy.class.g etClassLoader(), | |||
new Class<?>[] { CloseableHttpResponse.class }).getConstruct or(new Class[] { InvocationHandler.class }); | new Class<?>[] { CloseableHttpResponse.class }).getConstruct or(new Class[] { InvocationHandler.class }); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |