Commit 81fe52fb authored by Jisi Liu's avatar Jisi Liu

Fix java code according to error prone.

parent a1bb147e
......@@ -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;
......
......@@ -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"
......
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