google-protobuf 4.27.1-java → 4.27.2-java

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of google-protobuf might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5ccd99fe5ea28ca639a3567625a2f2aea02484539776caa477c3df3b835d293
4
- data.tar.gz: eedd76e3b0a6d5794c4a29cd98ef9ce5de477b69762acce8ff0fd44bc86ac576
3
+ metadata.gz: 5327aff0383472d63ff24c373dd141df494d4bedbca16dbd4d69ca05757133b7
4
+ data.tar.gz: 6c3f73739aee552cd012f5f301dab861054f6b92508d7ede8fd722af3e71d2e9
5
5
  SHA512:
6
- metadata.gz: d78be23c4c4ab359fd72de99fbac5ca4c9cee171413d85d5840a16fe9f44604dc533be2f3fd8ac7aeab5369f6ab6269fbb5144d2ef54937ba2878041242ea61e
7
- data.tar.gz: 7ed71024a1820a0f91d72d9c270370a76bf8f8223bc25f85bf7d08a379aafc7034136e45f087bc259725ad0905069aa92f5312d8e0e7513072c2d4b078727a04
6
+ metadata.gz: bd90a85f9df1111d1c5688682f90ef001a7734b7c6590313f43e01e7d68e3e3c8f78198462e5153190f20bceebcc04d1b1266206326d69f1ee4574bde08f6887
7
+ data.tar.gz: 21e408974134fb82783f6461f4687c7d033015c356e456cdc67d7518d7f90c42f644b4df2ef3133c5e8b7ee71cdceedf59dcf58aa08bda0215e4b45f239a9f28
@@ -13212,8 +13212,7 @@ bool _upb_FieldDef_ValidateUtf8(const upb_FieldDef* f) {
13212
13212
 
13213
13213
  bool _upb_FieldDef_IsGroupLike(const upb_FieldDef* f) {
13214
13214
  // Groups are always tag-delimited.
13215
- if (UPB_DESC(FeatureSet_message_encoding)(upb_FieldDef_ResolvedFeatures(f)) !=
13216
- UPB_DESC(FeatureSet_DELIMITED)) {
13215
+ if (f->type_ != kUpb_FieldType_Group) {
13217
13216
  return false;
13218
13217
  }
13219
13218
 
@@ -13647,12 +13646,6 @@ static void _upb_FieldDef_Create(upb_DefBuilder* ctx, const char* prefix,
13647
13646
  UPB_DESC(FieldDescriptorProto_has_type_name)(field_proto);
13648
13647
 
13649
13648
  f->type_ = (int)UPB_DESC(FieldDescriptorProto_type)(field_proto);
13650
- if (f->type_ == kUpb_FieldType_Message &&
13651
- // TODO: remove once we can deprecate kUpb_FieldType_Group.
13652
- UPB_DESC(FeatureSet_message_encoding)(f->resolved_features) ==
13653
- UPB_DESC(FeatureSet_DELIMITED)) {
13654
- f->type_ = kUpb_FieldType_Group;
13655
- }
13656
13649
 
13657
13650
  if (has_type) {
13658
13651
  switch (f->type_) {
@@ -13673,7 +13666,7 @@ static void _upb_FieldDef_Create(upb_DefBuilder* ctx, const char* prefix,
13673
13666
  }
13674
13667
  }
13675
13668
 
13676
- if (!has_type && has_type_name) {
13669
+ if ((!has_type && has_type_name) || f->type_ == kUpb_FieldType_Message) {
13677
13670
  f->type_ =
13678
13671
  UPB_FIELD_TYPE_UNSPECIFIED; // We'll assign this in resolve_subdef()
13679
13672
  } else {
@@ -13823,8 +13816,15 @@ static void resolve_subdef(upb_DefBuilder* ctx, const char* prefix,
13823
13816
  break;
13824
13817
  case UPB_DEFTYPE_MSG:
13825
13818
  f->sub.msgdef = def;
13826
- f->type_ = kUpb_FieldType_Message; // It appears there is no way of
13827
- // this being a group.
13819
+ f->type_ = kUpb_FieldType_Message;
13820
+ // TODO: remove once we can deprecate
13821
+ // kUpb_FieldType_Group.
13822
+ if (UPB_DESC(FeatureSet_message_encoding)(f->resolved_features) ==
13823
+ UPB_DESC(FeatureSet_DELIMITED) &&
13824
+ !upb_MessageDef_IsMapEntry(def) &&
13825
+ !(f->msgdef && upb_MessageDef_IsMapEntry(f->msgdef))) {
13826
+ f->type_ = kUpb_FieldType_Group;
13827
+ }
13828
13828
  f->has_presence = !upb_FieldDef_IsRepeated(f);
13829
13829
  break;
13830
13830
  default:
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.27.1
4
+ version: 4.27.2
5
5
  platform: java
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +192,7 @@ homepage: https://developers.google.com/protocol-buffers
192
192
  licenses:
193
193
  - BSD-3-Clause
194
194
  metadata:
195
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.27.1/ruby
195
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.27.2/ruby
196
196
  post_install_message:
197
197
  rdoc_options: []
198
198
  require_paths: