hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1725774 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java
Date Wed, 20 Jan 2016 18:49:30 GMT
Author: ggregory
Date: Wed Jan 20 18:49:30 2016
New Revision: 1725774

URL: http://svn.apache.org/viewvc?rev=1725774&view=rev
Log:
Do not use deprecated API.

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java?rev=1725774&r1=1725773&r2=1725774&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ehcache/EhcacheHttpCacheStorage.java
Wed Jan 20 18:49:30 2016
@@ -115,7 +115,7 @@ public class EhcacheHttpCacheStorage imp
             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 imp
 
             HttpCacheEntry existingEntry = null;
             if(oldElement != null){
-                final byte[] data = (byte[])oldElement.getValue();
+                final byte[] data = (byte[])oldElement.getObjectValue();
                 existingEntry = serializer.readFrom(new ByteArrayInputStream(data));
             }
 



Mime
View raw message