|
|
@ -1140,7 +1140,7 @@ void ImmutableMessageGenerator::GenerateExtensionRegistrationCode( |
|
|
|
// ===================================================================
|
|
|
|
// ===================================================================
|
|
|
|
void ImmutableMessageGenerator::GenerateParser(io::Printer* printer) { |
|
|
|
void ImmutableMessageGenerator::GenerateParser(io::Printer* printer) { |
|
|
|
printer->Print( |
|
|
|
printer->Print( |
|
|
|
"$visibility$ static final com.google.protobuf.Parser<$classname$>\n" |
|
|
|
"private static final com.google.protobuf.Parser<$classname$>\n" |
|
|
|
" PARSER = new com.google.protobuf.AbstractParser<$classname$>() {\n" |
|
|
|
" PARSER = new com.google.protobuf.AbstractParser<$classname$>() {\n" |
|
|
|
" @java.lang.Override\n" |
|
|
|
" @java.lang.Override\n" |
|
|
|
" public $classname$ parsePartialFrom(\n" |
|
|
|
" public $classname$ parsePartialFrom(\n" |
|
|
@ -1173,9 +1173,6 @@ void ImmutableMessageGenerator::GenerateParser(io::Printer* printer) { |
|
|
|
" return PARSER;\n" |
|
|
|
" return PARSER;\n" |
|
|
|
"}\n" |
|
|
|
"}\n" |
|
|
|
"\n", |
|
|
|
"\n", |
|
|
|
"visibility", |
|
|
|
|
|
|
|
ExposePublicParser(descriptor_->file()) ? "@java.lang.Deprecated public" |
|
|
|
|
|
|
|
: "private", |
|
|
|
|
|
|
|
"classname", descriptor_->name()); |
|
|
|
"classname", descriptor_->name()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|