Internal changes

PiperOrigin-RevId: 665658096
pull/17869/head
Mike Kruskal 3 months ago committed by Copybara-Service
parent e65ff236ab
commit 5cbf13bc9a
  1. 7
      java/core/src/main/java/com/google/protobuf/Descriptors.java

@ -2805,9 +2805,10 @@ public final class Descriptors {
}
boolean hasPossibleUnknownJavaFeature =
!unresolvedFeatures.getUnknownFields().isEmpty()
&& unresolvedFeatures
.getUnknownFields()
.hasField(JavaFeaturesProto.java_.getNumber());
&& (unresolvedFeatures
.getUnknownFields()
.hasField(JavaFeaturesProto.java_.getNumber())
);
if (hasPossibleCustomJavaFeature || hasPossibleUnknownJavaFeature) {
ExtensionRegistry registry = ExtensionRegistry.newInstance();
registry.add(JavaFeaturesProto.java_);

Loading…
Cancel
Save