You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2022/07/06 14:21:40 UTC
[httpcomponents-client] branch 4.5.x updated: Don't use deprecated Ehcache API.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 4.5.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/4.5.x by this push:
new 6a741b4f8 Don't use deprecated Ehcache API.
6a741b4f8 is described below
commit 6a741b4f8f23e6c5c7cc42c36c2acabfac19c3d6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jul 6 10:20:57 2022 -0400
Don't use deprecated Ehcache API.
---
.../http/impl/client/cache/ehcache/EhcacheHttpCacheStorage.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ehcache/EhcacheHttpCacheStorage.java b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ehcache/EhcacheHttpCacheStorage.java
index d92102732..1bbc5ce39 100644
--- a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ehcache/EhcacheHttpCacheStorage.java
+++ b/httpclient-cache/src/main/java/org/apache/http/impl/client/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));
}