commit | 1674fb395c587e9b5c2de54ca2d92a1dfd31f1dc | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <shimizu.sho@jp.fujitsu.com> | Wed Aug 20 14:44:31 2014 -0700 |
committer | Saurav Das <sauravdas@alumni.stanford.edu> | Fri Sep 05 11:47:21 2014 -0700 |
tree | ab16ca5970ada58d83aa6641054b7a2fcb90d127 | |
parent | c127a5a3bd6441c3ac5c75c65fb6f43d320270f8 [diff] [blame] |
Support Kryo serialization for intent related types - Implement the protected constructors - Register the types in KryoFactory Change-Id: I14214ed1703a8e4b3145625732c74600fc0aba06
diff --git a/src/main/java/net/onrc/onos/api/newintent/IntentId.java b/src/main/java/net/onrc/onos/api/newintent/IntentId.java index b7cdb01..ebe1b45 100644 --- a/src/main/java/net/onrc/onos/api/newintent/IntentId.java +++ b/src/main/java/net/onrc/onos/api/newintent/IntentId.java
@@ -27,6 +27,12 @@ return new IntentId(id); } + /** + * Constructor for serializer. + */ + protected IntentId() { + this.id = 0; + } /** * Constructs the ID corresponding to a given long value.