Update old comment to reflect that Java lite bit encodes enum closedness rather than just map fields with closed proto2 enum values pre-editions.

PiperOrigin-RevId: 650824123
pull/17386/head
Sandy Zhang 8 months ago committed by Copybara-Service
parent 1a18882a5d
commit 759b25ed3e
  1. 2
      src/google/protobuf/compiler/java/internal_helpers.h

@ -57,7 +57,7 @@ inline bool CheckUtf8(const FieldDescriptor* descriptor) {
// bit 0: whether the field is required.
// bit 1: whether the field requires UTF-8 validation.
// bit 2: whether the field needs isInitialized check.
// bit 3: whether the field is a map field with proto2 enum value.
// bit 3: whether the field is a closed enum.
// bits 4-7: unused
int GetExperimentalJavaFieldType(const FieldDescriptor* field);

Loading…
Cancel
Save