Skip to content

Commit

Permalink
Mark obsolete UnknownFieldParseException as deprecated
Browse files Browse the repository at this point in the history
This exception is unused and will be removed in the next breaking release (v5.x.x).

PiperOrigin-RevId: 650399456
  • Loading branch information
zhangskz authored and copybara-github committed Jul 8, 2024
1 parent e530d40 commit fba8024
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion java/core/src/main/java/com/google/protobuf/TextFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,13 @@ public int getColumn() {
}
}

/** 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;

Expand Down

0 comments on commit fba8024

Please sign in to comment.