Add "public" modifier to Kotlin generated code

My previous attempt to do this https://github.com/protocolbuffers/protobuf/pull/11068#issuecomment-1333645637 missed this instance.
pull/11118/head
deannagarcia 2 years ago committed by GitHub
parent 782c7722e1
commit 9b37daf1ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/google/protobuf/compiler/java/map_field.cc

@ -800,7 +800,7 @@ void ImmutableMapFieldGenerator::GenerateKotlinDslMembers(
variables_, variables_,
"@kotlin.jvm.JvmSynthetic\n" "@kotlin.jvm.JvmSynthetic\n"
"@JvmName(\"clear$kt_capitalized_name$\")\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" "<$kt_key_type$, $kt_value_type$, ${$$kt_capitalized_name$Proxy$}$>\n"
" .clear() {\n" " .clear() {\n"
" $kt_dsl_builder$.${$clear$capitalized_name$$}$()\n" " $kt_dsl_builder$.${$clear$capitalized_name$$}$()\n"

Loading…
Cancel
Save