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 #11068 (comment) missed this instance.
  • Loading branch information
deannagarcia authored Dec 1, 2022
1 parent 782c772 commit 9b37daf
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 9b37daf

Please sign in to comment.