aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2017-03-10 14:53:15 -0800
committerGravatar Jisi Liu <jisi.liu@gmail.com>2017-03-10 14:53:15 -0800
commit81fe52fbd4f0fcfac6259e7eacd9eaddaf0a4c3e (patch)
treefab17d29dd4dd51f70ad80dcf11a60c4fb82ca20 /src/google
parenta1bb147e96b6f74db6cdf3c3fcb00492472dbbfa (diff)
Fix java code according to error prone.
Diffstat (limited to 'src/google')
-rw-r--r--src/google/protobuf/compiler/java/java_message_lite.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/java/java_message_lite.cc b/src/google/protobuf/compiler/java/java_message_lite.cc
index 45834f2a..e84321bb 100644
--- a/src/google/protobuf/compiler/java/java_message_lite.cc
+++ b/src/google/protobuf/compiler/java/java_message_lite.cc
@@ -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"