commit | d08e2e97f1c378b79990af886e37ffa58de30244 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Sun Jul 10 00:15:10 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Aug 19 17:26:57 2016 +0000 |
tree | 39b747427aec95a8177d545cc463d753680cd0d5 | |
parent | 86f142f958d99300262a0304a25bc4d3e5441944 [diff] [blame] |
Binary incompatible serializer changes - If the field type is fixed and the type is final, Class info can be omitted - Annotations serializer to use optimization based on the fact Map<String, String> and non-null key/value - Reduce number of Map copy required for ImmutableMap serializer - Reduce number of array copy behind Immutable{List, Set} serializer Change-Id: Ie467a943a33fbfb43b289b8b71ad91ee5890bfb0
diff --git a/core/store/serializers/src/main/java/org/onosproject/store/serializers/DeviceIdSerializer.java b/core/store/serializers/src/main/java/org/onosproject/store/serializers/DeviceIdSerializer.java index 65f5695..063b82b 100644 --- a/core/store/serializers/src/main/java/org/onosproject/store/serializers/DeviceIdSerializer.java +++ b/core/store/serializers/src/main/java/org/onosproject/store/serializers/DeviceIdSerializer.java
@@ -27,6 +27,12 @@ */ public final class DeviceIdSerializer extends Serializer<DeviceId> { + private static final DeviceIdSerializer INSTANCE = new DeviceIdSerializer(); + + public static final DeviceIdSerializer deviceIdSerializer() { + return INSTANCE; + } + /** * Creates {@link DeviceId} serializer instance. */