From fba8024963b8884cfa0d3903b3b0cbed27587f02 Mon Sep 17 00:00:00 2001 From: Sandy Zhang Date: Mon, 8 Jul 2024 15:49:12 -0700 Subject: [PATCH] Mark obsolete UnknownFieldParseException as deprecated This exception is unused and will be removed in the next breaking release (v5.x.x). PiperOrigin-RevId: 650399456 --- .../src/main/java/com/google/protobuf/TextFormat.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/java/core/src/main/java/com/google/protobuf/TextFormat.java b/java/core/src/main/java/com/google/protobuf/TextFormat.java index eb484f0320..bfae1a17a6 100644 --- a/java/core/src/main/java/com/google/protobuf/TextFormat.java +++ b/java/core/src/main/java/com/google/protobuf/TextFormat.java @@ -1378,7 +1378,13 @@ public final class TextFormat { } } - /** Thrown when encountering an unknown field while parsing a text format message. */ + /** Obsolete exception, once thrown when encountering an unknown field while parsing a text + format message. + * + * @deprecated This exception is unused and will be removed in the next breaking release + (v5.x.x). + */ + @Deprecated public static class UnknownFieldParseException extends ParseException { private final String unknownField;