From 1cd0e720f769e3527c700de58424156dce69eb2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Tue, 24 Mar 2020 10:23:31 +0100 Subject: [PATCH] Specify that Kotlin code samples leverage kotlin-allopen --- src/docs/asciidoc/languages/kotlin.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/docs/asciidoc/languages/kotlin.adoc b/src/docs/asciidoc/languages/kotlin.adoc index ad18b3c28b8..ebcbf6ad058 100644 --- a/src/docs/asciidoc/languages/kotlin.adoc +++ b/src/docs/asciidoc/languages/kotlin.adoc @@ -668,6 +668,10 @@ annotations are meta-annotated with `@Component`. https://start.spring.io/#!language=kotlin&type=gradle-project[start.spring.io] enables it by default, so, in practice, you can write your Kotlin beans without any additional `open` keyword, as in Java. +NOTE: The Kotlin code samples in Spring Framework documentation do not specify explicitly `open` on these classes and +their member functions, they are written for projects using the `kotlin-allopen` plugin since this is the most commonly +used setup. + === Using Immutable Class Instances for Persistence In Kotlin, it is convenient and considered to be a best practice to declare read-only properties