Mark obsolete UnknownFieldParseException as deprecated

This exception is unused and will be removed in the next breaking release (v5.x.x).

PiperOrigin-RevId: 650399456
pull/17318/head
Sandy Zhang 5 months ago committed by Copybara-Service
parent e530d40bfc
commit fba8024963
  1. 8
      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;

Loading…
Cancel
Save