Skip to content

Commit 9b37daf

Browse files
authored
Add "public" modifier to Kotlin generated code
My previous attempt to do this #11068 (comment) missed this instance.
1 parent 782c772 commit 9b37daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/protobuf/compiler/java/map_field.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ void ImmutableMapFieldGenerator::GenerateKotlinDslMembers(
800800
variables_,
801801
"@kotlin.jvm.JvmSynthetic\n"
802802
"@JvmName(\"clear$kt_capitalized_name$\")\n"
803-
"fun com.google.protobuf.kotlin.DslMap"
803+
"public fun com.google.protobuf.kotlin.DslMap"
804804
"<$kt_key_type$, $kt_value_type$, ${$$kt_capitalized_name$Proxy$}$>\n"
805805
" .clear() {\n"
806806
" $kt_dsl_builder$.${$clear$capitalized_name$$}$()\n"

0 commit comments

Comments
 (0)