Commit eb8e3d32 authored by Feng Xiao's avatar Feng Xiao Committed by GitHub

Merge pull request #3134 from lundefugl/javabug1

Issue 3112: Object class with fully qualified name
parents aaa2550f aea43743
...@@ -472,7 +472,7 @@ GenerateCommonBuilderMethods(io::Printer* printer) { ...@@ -472,7 +472,7 @@ GenerateCommonBuilderMethods(io::Printer* printer) {
"}\n" "}\n"
"public Builder setField(\n" "public Builder setField(\n"
" com.google.protobuf.Descriptors.FieldDescriptor field,\n" " com.google.protobuf.Descriptors.FieldDescriptor field,\n"
" Object value) {\n" " java.lang.Object value) {\n"
" return (Builder) super.setField(field, value);\n" " return (Builder) super.setField(field, value);\n"
"}\n" "}\n"
"public Builder clearField(\n" "public Builder clearField(\n"
...@@ -485,12 +485,12 @@ GenerateCommonBuilderMethods(io::Printer* printer) { ...@@ -485,12 +485,12 @@ GenerateCommonBuilderMethods(io::Printer* printer) {
"}\n" "}\n"
"public Builder setRepeatedField(\n" "public Builder setRepeatedField(\n"
" com.google.protobuf.Descriptors.FieldDescriptor field,\n" " com.google.protobuf.Descriptors.FieldDescriptor field,\n"
" int index, Object value) {\n" " int index, java.lang.Object value) {\n"
" return (Builder) super.setRepeatedField(field, index, value);\n" " return (Builder) super.setRepeatedField(field, index, value);\n"
"}\n" "}\n"
"public Builder addRepeatedField(\n" "public Builder addRepeatedField(\n"
" com.google.protobuf.Descriptors.FieldDescriptor field,\n" " com.google.protobuf.Descriptors.FieldDescriptor field,\n"
" Object value) {\n" " java.lang.Object value) {\n"
" return (Builder) super.addRepeatedField(field, value);\n" " return (Builder) super.addRepeatedField(field, value);\n"
"}\n"); "}\n");
......
...@@ -346,9 +346,9 @@ void ImmutableMessageLiteGenerator::Generate(io::Printer* printer) { ...@@ -346,9 +346,9 @@ void ImmutableMessageLiteGenerator::Generate(io::Printer* printer) {
printer->Print( printer->Print(
"@java.lang.SuppressWarnings({\"unchecked\", \"fallthrough\"})\n" "@java.lang.SuppressWarnings({\"unchecked\", \"fallthrough\"})\n"
"protected final Object dynamicMethod(\n" "protected final java.lang.Object dynamicMethod(\n"
" com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,\n" " com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,\n"
" Object arg0, Object arg1) {\n" " java.lang.Object arg0, java.lang.Object arg1) {\n"
" switch (method) {\n" " switch (method) {\n"
" case NEW_MUTABLE_INSTANCE: {\n" " case NEW_MUTABLE_INSTANCE: {\n"
" return new $classname$();\n" " return new $classname$();\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