You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/01/19 18:08:16 UTC
[isis] branch master updated: ISIS-2223: use serializable map
explicitly
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 42d30b9 ISIS-2223: use serializable map explicitly
42d30b9 is described below
commit 42d30b91f55b906e17d76216fa3da2e2e72c1d5b
Author: Andi Huber <ah...@apache.org>
AuthorDate: Sun Jan 19 19:07:37 2020 +0100
ISIS-2223: use serializable map explicitly
---
.../isis/core/commons/internal/memento/_Mementos_MementoDefault.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/core/commons/src/main/java/org/apache/isis/core/commons/internal/memento/_Mementos_MementoDefault.java b/core/commons/src/main/java/org/apache/isis/core/commons/internal/memento/_Mementos_MementoDefault.java
index 637cf3d..3538995 100644
--- a/core/commons/src/main/java/org/apache/isis/core/commons/internal/memento/_Mementos_MementoDefault.java
+++ b/core/commons/src/main/java/org/apache/isis/core/commons/internal/memento/_Mementos_MementoDefault.java
@@ -27,7 +27,6 @@ import java.io.ObjectOutputStream;
import java.io.ObjectStreamClass;
import java.io.Serializable;
import java.util.HashMap;
-import java.util.Map;
import java.util.Set;
import javax.annotation.Nullable;
@@ -54,7 +53,7 @@ class _Mementos_MementoDefault implements _Mementos.Memento {
private final EncoderDecoder codec;
private final SerializingAdapter serializer;
- private final Map<String, Serializable> valuesByKey;
+ private final HashMap<String, Serializable> valuesByKey; // we need a Serializable Map
_Mementos_MementoDefault(EncoderDecoder codec, SerializingAdapter serializer) {
this(codec, serializer, _Maps.newHashMap());