Skip to content

Commit

Permalink
Fixing merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruskal-google committed Sep 28, 2022
1 parent 082d4b7 commit 9aa46b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -418,10 +418,11 @@ public DynamicMessage buildPartial() {
}
}

fields.makeImmutable();
DynamicMessage result =
new DynamicMessage(
type,
fields.buildPartial(),
fields,
java.util.Arrays.copyOf(oneofCases, oneofCases.length),
unknownFields);
return result;
Expand Down
4 changes: 2 additions & 2 deletions src/google/protobuf/compiler/java/java_message_builder.cc
Expand Up @@ -673,7 +673,7 @@ void MessageBuilderGenerator::GenerateBuilderFieldParsingCase(
io::Printer* printer, const FieldDescriptor* field) {
uint32_t tag = WireFormatLite::MakeTag(
field->number(), WireFormat::WireTypeForFieldType(field->type()));
std::string tagString = absl::StrCat(static_cast<int32_t>(tag));
std::string tagString = StrCat(static_cast<int32_t>(tag));
printer->Print("case $tag$: {\n", "tag", tagString);
printer->Indent();

Expand All @@ -692,7 +692,7 @@ void MessageBuilderGenerator::GenerateBuilderPackedFieldParsingCase(
// packed version of this field regardless of field->options().packed().
uint32_t tag = WireFormatLite::MakeTag(
field->number(), WireFormatLite::WIRETYPE_LENGTH_DELIMITED);
std::string tagString = absl::StrCat(static_cast<int32_t>(tag));
std::string tagString = StrCat(static_cast<int32_t>(tag));
printer->Print("case $tag$: {\n", "tag", tagString);
printer->Indent();

Expand Down

0 comments on commit 9aa46b3

Please sign in to comment.