Internal change

PiperOrigin-RevId: 640943875
pull/17056/head
Protobuf Team Bot 6 months ago committed by Copybara-Service
parent f3c140f96c
commit 3fe3459973
  1. 3
      java/core/src/main/java/com/google/protobuf/TextFormat.java

@ -1537,7 +1537,6 @@ public final class TextFormat {
private final SingularOverwritePolicy singularOverwritePolicy;
private TextFormatParseInfoTree.Builder parseInfoTreeBuilder;
private final int recursionLimit;
private Descriptor rootType;
private Parser(
TypeRegistry typeRegistry,
@ -1554,7 +1553,6 @@ public final class TextFormat {
this.singularOverwritePolicy = singularOverwritePolicy;
this.parseInfoTreeBuilder = parseInfoTreeBuilder;
this.recursionLimit = recursionLimit;
this.rootType = null;
}
/** Returns a new instance of {@link Builder}. */
@ -1756,7 +1754,6 @@ public final class TextFormat {
throws ParseException {
final Tokenizer tokenizer = new Tokenizer(input);
MessageReflection.BuilderAdapter target = new MessageReflection.BuilderAdapter(builder);
rootType = target.getDescriptorForType();
List<UnknownField> unknownFields = new ArrayList<UnknownField>();
while (!tokenizer.atEnd()) {

Loading…
Cancel
Save