Commit 2ee294d8 authored by Jisi Liu's avatar Jisi Liu

Fix Java 1.6 compile

parent 188755c0
...@@ -730,10 +730,10 @@ void ImmutableMessageLiteGenerator::GenerateSerializeOneExtensionRange( ...@@ -730,10 +730,10 @@ void ImmutableMessageLiteGenerator::GenerateSerializeOneExtensionRange(
void ImmutableMessageLiteGenerator::GenerateBuilder(io::Printer* printer) { void ImmutableMessageLiteGenerator::GenerateBuilder(io::Printer* printer) {
printer->Print( printer->Print(
"public static Builder newBuilder() {\n" "public static Builder newBuilder() {\n"
" return DEFAULT_INSTANCE.createBuilder();\n" " return (Builder) DEFAULT_INSTANCE.createBuilder();\n"
"}\n" "}\n"
"public static Builder newBuilder($classname$ prototype) {\n" "public static Builder newBuilder($classname$ prototype) {\n"
" return DEFAULT_INSTANCE.createBuilder(prototype);\n" " return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);\n"
"}\n" "}\n"
"\n", "\n",
"classname", name_resolver_->GetImmutableClassName(descriptor_)); "classname", name_resolver_->GetImmutableClassName(descriptor_));
......
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