Skip to content

Commit

Permalink
Remove JvmField annotations from Kotlin private properties (#8804) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneiriac committed Jul 13, 2021
1 parent 7b1f793 commit a420f23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -40,7 +40,7 @@ import com.google.protobuf.MessageLite
*/
class ExtensionList<E, M : MessageLite> @OnlyForUseByGeneratedProtoCode constructor(
val extension: ExtensionLite<M, List<E>>,
@JvmField private val delegate: List<E>
private val delegate: List<E>
) : List<E> by delegate {
override fun iterator(): Iterator<E> = UnmodifiableIterator(delegate.iterator())

Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/java/java_message.cc
Expand Up @@ -1409,7 +1409,7 @@ void ImmutableMessageGenerator::GenerateKotlinDsl(io::Printer* printer) const {
"@com.google.protobuf.kotlin.ProtoDslMarker\n");
printer->Print(
"class Dsl private constructor(\n"
" @kotlin.jvm.JvmField private val _builder: $message$.Builder\n"
" private val _builder: $message$.Builder\n"
") {\n"
" companion object {\n"
" @kotlin.jvm.JvmSynthetic\n"
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/java/java_message_lite.cc
Expand Up @@ -732,7 +732,7 @@ void ImmutableMessageLiteGenerator::GenerateKotlinDsl(
"@com.google.protobuf.kotlin.ProtoDslMarker\n");
printer->Print(
"class Dsl private constructor(\n"
" @kotlin.jvm.JvmField private val _builder: $message$.Builder\n"
" private val _builder: $message$.Builder\n"
") {\n"
" companion object {\n"
" @kotlin.jvm.JvmSynthetic\n"
Expand Down

0 comments on commit a420f23

Please sign in to comment.