Commit 23f42cea authored by liujisi@google.com's avatar liujisi@google.com

Define serailVersionUID for generated java class.

parent 3dc4a7be
...@@ -549,6 +549,7 @@ GenerateMessageSerializationMethods(io::Printer* printer) { ...@@ -549,6 +549,7 @@ GenerateMessageSerializationMethods(io::Printer* printer) {
"\n"); "\n");
printer->Print( printer->Print(
"private static final long serialVersionUID = 0L;\n"
"@java.lang.Override\n" "@java.lang.Override\n"
"protected java.lang.Object writeReplace()\n" "protected java.lang.Object writeReplace()\n"
" throws java.io.ObjectStreamException {\n" " throws java.io.ObjectStreamException {\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment