summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Ebinger <breadley@google.com>2016-02-04 17:24:55 -0800
committerBrad Ebinger <breadley@google.com>2016-02-08 14:54:27 -0800
commit1df8c42a2def6b8f4bb1217c4e73ede1694649ac (patch)
tree6db75ce06d23bbacb95e5c65b1158f0f078a3168
parentb23dbfce7ea84c39cea75b612868a5832cb9af2b (diff)
downloadnist-sip-1df8c42a2def6b8f4bb1217c4e73ede1694649ac.tar.gz
Defines the serialVersionUID for deserialization
Upon migration from Android M to N, deserialization of the SIP profiles becomes impossible because the serialVersionUID of NetObject has changed. This change fixes the serialVersionUID to the previous value so that the SIP profiles are not lost during migration. BUG: 26361559 Change-Id: If4358d4f396881e87d6d41231e3eec41ada63a00
-rw-r--r--java/gov/nist/javax/sip/address/NetObject.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/gov/nist/javax/sip/address/NetObject.java b/java/gov/nist/javax/sip/address/NetObject.java
index 6dd3ec6..7eb285c 100644
--- a/java/gov/nist/javax/sip/address/NetObject.java
+++ b/java/gov/nist/javax/sip/address/NetObject.java
@@ -43,6 +43,10 @@ import java.lang.reflect.*;
*/
public abstract class NetObject extends GenericObject {
+ // BEGIN android-added
+ protected static final long serialVersionUID = 6149926203633320729L;
+ // END android-added
+
protected static final String CORE_PACKAGE = PackageNames.CORE_PACKAGE;
protected static final String NET_PACKAGE = PackageNames.NET_PACKAGE;
protected static final String PARSER_PACKAGE = PackageNames.PARSER_PACKAGE;