You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2021/01/31 09:31:20 UTC

[felix-dev] branch master updated: FELIX-6383 : Unable to persist state to state.ser

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git


The following commit(s) were added to refs/heads/master by this push:
     new d268db5  FELIX-6383 : Unable to persist state to state.ser
d268db5 is described below

commit d268db54048c3ba71b3ea07042e4fe73bbab6ae5
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Sun Jan 31 10:30:16 2021 +0100

    FELIX-6383 : Unable to persist state to state.ser
---
 .../java/org/apache/felix/cm/json/impl/OrderedDictionary.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/cm.json/src/main/java/org/apache/felix/cm/json/impl/OrderedDictionary.java b/cm.json/src/main/java/org/apache/felix/cm/json/impl/OrderedDictionary.java
index d6cc2b4..f2cc16a 100644
--- a/cm.json/src/main/java/org/apache/felix/cm/json/impl/OrderedDictionary.java
+++ b/cm.json/src/main/java/org/apache/felix/cm/json/impl/OrderedDictionary.java
@@ -137,7 +137,9 @@ public class OrderedDictionary extends Hashtable<String, Object> implements Seri
         return map.hashCode();
     }
 
-    private static final class CaseInsensitiveKey {
+    private static final class CaseInsensitiveKey implements Serializable {
+
+        private static final long serialVersionUID = 7040882564605268453L;
 
         private final String value;
 
@@ -277,7 +279,7 @@ public class OrderedDictionary extends Hashtable<String, Object> implements Seri
 	}
 
 	private static final class EntryIterator implements Iterator<Map.Entry<String, Object>> {
-        
+
         private final Iterator<Map.Entry<CaseInsensitiveKey, Object>> i;
 
 		EntryIterator(final Collection<Map.Entry<CaseInsensitiveKey, Object>> c) {
@@ -301,7 +303,7 @@ public class OrderedDictionary extends Hashtable<String, Object> implements Seri
 	}
 
 	private static final class CaseInsentiveEntry implements Map.Entry<String, Object> {
-        
+
         private final Map.Entry<CaseInsensitiveKey, Object> entry;
 
 		CaseInsentiveEntry(final Map.Entry<CaseInsensitiveKey, Object> entry) {