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
f54fb9d7
Commit
f54fb9d7
authored
Mar 10, 2017
by
Jisi Liu
Committed by
GitHub
Mar 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2832 from pherl/javaep
Fix java code according to error prone.
parents
e11cd3ee
81fe52fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
TestUtil.java
java/core/src/test/java/com/google/protobuf/TestUtil.java
+3
-0
java_message_lite.cc
src/google/protobuf/compiler/java/java_message_lite.cc
+1
-1
No files found.
java/core/src/test/java/com/google/protobuf/TestUtil.java
View file @
f54fb9d7
...
...
@@ -2602,6 +2602,9 @@ public final class TestUtil {
case
FOO_CORD:
Assert
.
assertTrue
(
message
.
hasFooCord
());
break
;
case
FOO_STRING_PIECE:
Assert
.
assertTrue
(
message
.
hasFooStringPiece
());
break
;
case
FOO_BYTES:
Assert
.
assertTrue
(
message
.
hasFooBytes
());
break
;
...
...
src/google/protobuf/compiler/java/java_message_lite.cc
View file @
f54fb9d7
...
...
@@ -345,7 +345,7 @@ void ImmutableMessageLiteGenerator::Generate(io::Printer* printer) {
}
printer
->
Print
(
"@java.lang.SuppressWarnings(
\"
unchecked
\"
)
\n
"
"@java.lang.SuppressWarnings(
{
\"
unchecked
\"
,
\"
fallthrough
\"
}
)
\n
"
"protected final Object dynamicMethod(
\n
"
" com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
\n
"
" Object arg0, Object arg1) {
\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