Fix lint warnings for protobuf GeneratedMessage.java

PiperOrigin-RevId: 516731120
pull/12235/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent f257fd2eed
commit d70ddf20d3
  1. 3
      java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java

@ -348,6 +348,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage implements Seri
}
/** Used by generated code. */
@SuppressWarnings("ProtoParseWithRegistry")
protected static <M extends Message> M parseWithIOException(Parser<M> parser, InputStream input)
throws IOException {
try {
@ -368,6 +369,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage implements Seri
}
/** Used by generated code. */
@SuppressWarnings("ProtoParseWithRegistry")
protected static <M extends Message> M parseWithIOException(
Parser<M> parser, CodedInputStream input) throws IOException {
try {
@ -389,6 +391,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage implements Seri
}
/** Used by generated code. */
@SuppressWarnings("ProtoParseWithRegistry")
protected static <M extends Message> M parseDelimitedWithIOException(
Parser<M> parser, InputStream input) throws IOException {
try {

Loading…
Cancel
Save