Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
eb8e3d32
Commit
eb8e3d32
authored
Jul 17, 2017
by
Feng Xiao
Committed by
GitHub
Jul 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3134 from lundefugl/javabug1
Issue 3112: Object class with fully qualified name
parents
aaa2550f
aea43743
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
java_message_builder.cc
src/google/protobuf/compiler/java/java_message_builder.cc
+3
-3
java_message_lite.cc
src/google/protobuf/compiler/java/java_message_lite.cc
+2
-2
No files found.
src/google/protobuf/compiler/java/java_message_builder.cc
View file @
eb8e3d32
...
...
@@ -472,7 +472,7 @@ GenerateCommonBuilderMethods(io::Printer* printer) {
"}
\n
"
"public Builder setField(
\n
"
" com.google.protobuf.Descriptors.FieldDescriptor field,
\n
"
" Object value) {
\n
"
"
java.lang.
Object value) {
\n
"
" return (Builder) super.setField(field, value);
\n
"
"}
\n
"
"public Builder clearField(
\n
"
...
...
@@ -485,12 +485,12 @@ GenerateCommonBuilderMethods(io::Printer* printer) {
"}
\n
"
"public Builder setRepeatedField(
\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
"
"}
\n
"
"public Builder addRepeatedField(
\n
"
" com.google.protobuf.Descriptors.FieldDescriptor field,
\n
"
" Object value) {
\n
"
"
java.lang.
Object value) {
\n
"
" return (Builder) super.addRepeatedField(field, value);
\n
"
"}
\n
"
);
...
...
src/google/protobuf/compiler/java/java_message_lite.cc
View file @
eb8e3d32
...
...
@@ -346,9 +346,9 @@ void ImmutableMessageLiteGenerator::Generate(io::Printer* printer) {
printer
->
Print
(
"@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
"
"
Object arg0,
Object arg1) {
\n
"
"
java.lang.Object arg0, java.lang.
Object arg1) {
\n
"
" switch (method) {
\n
"
" case NEW_MUTABLE_INSTANCE: {
\n
"
" return new $classname$();
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment