Skip to content

Commit

Permalink
Add "public" modifier to Kotlin generated code
Browse files Browse the repository at this point in the history
My previous attempt to do this protocolbuffers#11068 (comment) missed this instance.
  • Loading branch information
deannagarcia authored and Dan Dees committed Mar 6, 2024
1 parent 4ca4492 commit c29916e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/java/map_field.cc
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ void ImmutableMapFieldGenerator::GenerateKotlinDslMembers(
variables_,
"@kotlin.jvm.JvmSynthetic\n"
"@JvmName(\"clear$kt_capitalized_name$\")\n"
"fun com.google.protobuf.kotlin.DslMap"
"public fun com.google.protobuf.kotlin.DslMap"
"<$kt_key_type$, $kt_value_type$, ${$$kt_capitalized_name$Proxy$}$>\n"
" .clear() {\n"
" $kt_dsl_builder$.${$clear$capitalized_name$$}$()\n"
Expand Down

0 comments on commit c29916e

Please sign in to comment.