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:
Gary D. Gregory 2016-01-20 18:49:30 +00:00
parent 931fe1e49b
commit 9a83f4b807
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ public class EhcacheHttpCacheStorage implements HttpCacheStorage {
return null;
}
final byte[] data = (byte[])e.getValue();
final byte[] data = (byte[])e.getObjectValue();
return serializer.readFrom(new ByteArrayInputStream(data));
}
@ -133,7 +133,7 @@ public class EhcacheHttpCacheStorage implements HttpCacheStorage {
HttpCacheEntry existingEntry = null;
if(oldElement != null){
final byte[] data = (byte[])oldElement.getValue();
final byte[] data = (byte[])oldElement.getObjectValue();
existingEntry = serializer.readFrom(new ByteArrayInputStream(data));
}