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

View File

@ -115,7 +115,7 @@ public synchronized HttpCacheEntry getEntry(final String key) throws IOException
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 synchronized void updateEntry(final String key, final HttpCacheUpdateCall
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));
} }