skip creation of local var in proxyhandler.storetocache

pull/1/head
reger 10 years ago
parent 8a4a2929ae
commit e4316e2d74

@ -112,14 +112,12 @@ public class ProxyHandler extends AbstractRemoteHandler implements Handler {
} }
} }
private void storeToCache(final Response response, final byte[] array) { private void storeToCache(final Response yacyResponse, final byte[] cacheArray) {
final Thread t = new Thread() { final Thread t = new Thread() {
final Response yacyResponse = response;
final byte[] cacheArray = array;
@Override @Override
public void run() { public void run() {
this.setName("ProxyHandler.storeToCache(" + yacyResponse.url() + ")");
if (yacyResponse == null) return; if (yacyResponse == null) return;
this.setName("ProxyHandler.storeToCache(" + yacyResponse.url() + ")");
// the cache does either not exist or is (supposed to be) stale // the cache does either not exist or is (supposed to be) stale
deleteFromCache(yacyResponse.url().hash()); deleteFromCache(yacyResponse.url().hash());

Loading…
Cancel
Save