Skip to content

Commit

Permalink
Fix checking unknown field set empty which wasn't exposed yet in 27.x
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangskz committed Jun 17, 2024
1 parent 2426a02 commit c7a006a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,7 @@ void resolveFeatures(FeatureSet unresolvedFeatures) throws DescriptorValidationE
}
}
boolean hasPossibleUnknownJavaFeature =
!unresolvedFeatures.getUnknownFields().isEmpty()
!unresolvedFeatures.getUnknownFields().asMap().isEmpty()
&& unresolvedFeatures
.getUnknownFields()
.hasField(JavaFeaturesProto.java_.getNumber());
Expand Down

0 comments on commit c7a006a

Please sign in to comment.