foundations/foundation-protobuf/src/main/java/org/apache/servicecomb/foundation/protobuf/internal/schema/serializer/repeated/impl/enums/EnumNotPackedWriteSchemas.java [140:155]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void writeEnumCollection(OutputEx output, Collection<Enum<?>> collection) throws IOException {
      for (Enum<?> element : collection) {
        if (element == null) {
          ProtoUtils.throwNotSupportNullElement(protoField);
          return;
        }

        String name = element.name();
        Integer enumValue = enumMeta.getValueByName(name);
        if (enumValue == null) {
          throw new IllegalStateException(
              String.format("invalid enum name %s for proto %s, field=%s:%s",
                  name,
                  protoField.getTypeName(),
                  ((Type) protoField.getParent()).getCanonicalName(),
                  protoField.getName()));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



foundations/foundation-protobuf/src/main/java/org/apache/servicecomb/foundation/protobuf/internal/schema/serializer/repeated/impl/enums/EnumPackedWriteSchemas.java [136:151]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void writeEnumCollection(OutputEx output, Collection<Enum<?>> collection) throws IOException {
      for (Enum<?> element : collection) {
        if (element == null) {
          ProtoUtils.throwNotSupportNullElement(protoField);
          return;
        }

        String name = element.name();
        Integer enumValue = enumMeta.getValueByName(name);
        if (enumValue == null) {
          throw new IllegalStateException(
              String.format("invalid enum name %s for proto %s, field=%s:%s",
                  name,
                  protoField.getTypeName(),
                  ((Type) protoField.getParent()).getCanonicalName(),
                  protoField.getName()));
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



