From 9a83f4b807bfaf96330d3e7e6ccebb9f7776c4c6 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Wed, 20 Jan 2016 18:49:30 +0000 Subject: [PATCH] Do not use deprecated API. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1725774 13f79535-47bb-0310-9956-ffa450edef68 --- .../http/impl/cache/ehcache/EhcacheHttpCacheStorage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java b/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java index 2a176a77b..075448964 100644 --- a/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java +++ b/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java @@ -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)); }