diff --git a/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java b/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java index ed1d21fd81..acc0e06141 100644 --- a/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java +++ b/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 parseWithIOException(Parser 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 parseWithIOException( Parser 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 parseDelimitedWithIOException( Parser parser, InputStream input) throws IOException { try {