Skip to content

Commit

Permalink
fix: restore val
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheong01 committed Apr 5, 2022
1 parent 82ff86c commit 97533f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/compiler/java/enum_field.cc
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void ImmutableEnumFieldGenerator::GenerateKotlinDslMembers(
io::Printer* printer) const {
WriteFieldDocComment(printer, descriptor_);
printer->Print(variables_,
"$kt_deprecation$public var $kt_name$: $kt_type$\n"
"$kt_deprecation$ var $kt_name$: $kt_type$\n"
" @JvmName(\"${$get$kt_capitalized_name$$}$\")\n"
" get() = $kt_dsl_builder$.${$get$capitalized_name$$}$()\n"
" @JvmName(\"${$set$kt_capitalized_name$$}$\")\n"
Expand Down Expand Up @@ -1090,7 +1090,7 @@ void RepeatedImmutableEnumFieldGenerator::GenerateKotlinDslMembers(

WriteFieldDocComment(printer, descriptor_);
printer->Print(variables_,
"$kt_deprecation$ $kt_name$: "
"$kt_deprecation$ val $kt_name$: "
"com.google.protobuf.kotlin.DslList"
"<$kt_type$, ${$$kt_capitalized_name$Proxy$}$>\n"
" @kotlin.jvm.JvmSynthetic\n"
Expand Down

0 comments on commit 97533f5

Please sign in to comment.