Do not use deprecated API.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1725774 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
931fe1e49b
commit
9a83f4b807
|
@ -115,7 +115,7 @@ public class EhcacheHttpCacheStorage implements HttpCacheStorage {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
final byte[] data = (byte[])e.getValue();
|
final byte[] data = (byte[])e.getObjectValue();
|
||||||
return serializer.readFrom(new ByteArrayInputStream(data));
|
return serializer.readFrom(new ByteArrayInputStream(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ public class EhcacheHttpCacheStorage implements HttpCacheStorage {
|
||||||
|
|
||||||
HttpCacheEntry existingEntry = null;
|
HttpCacheEntry existingEntry = null;
|
||||||
if(oldElement != null){
|
if(oldElement != null){
|
||||||
final byte[] data = (byte[])oldElement.getValue();
|
final byte[] data = (byte[])oldElement.getObjectValue();
|
||||||
existingEntry = serializer.readFrom(new ByteArrayInputStream(data));
|
existingEntry = serializer.readFrom(new ByteArrayInputStream(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue