commit | 4c8e3feb6cc76c8ef5d4f80e8c187b0f43db7f20 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Fri Sep 16 16:20:28 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Sep 21 00:37:25 2016 +0000 |
tree | 101dbd1c05a11bc435c0be50510183dba4067ca5 | |
parent | 46ab5cc4bad9602485428da5675b7205d0b83c27 [diff] [blame] |
Allow null values for DocumentTree nodes Change-Id: I88a12727751c6d82843a7b6a9a2e753da1500c99
diff --git a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/CatalystSerializers.java b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/CatalystSerializers.java index 3252f61..aea7aa7 100644 --- a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/CatalystSerializers.java +++ b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/CatalystSerializers.java
@@ -21,6 +21,7 @@ import io.atomix.variables.internal.LongCommands; import java.util.Arrays; +import java.util.Optional; import org.onlab.util.Match; import org.onosproject.cluster.Leader; @@ -110,6 +111,7 @@ serializer.register(ImmutableList.of().getClass(), factory); serializer.register(ImmutableList.of("a").getClass(), factory); serializer.register(Arrays.asList().getClass(), factory); + serializer.register(Optional.class, factory); serializer.resolve(new LongCommands.TypeResolver()); serializer.resolve(new AtomixConsistentMapCommands.TypeResolver());