Skip to content

Commit 1cd0e72

Browse files
committed
Specify that Kotlin code samples leverage kotlin-allopen
1 parent 60dca02 commit 1cd0e72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/docs/asciidoc/languages/kotlin.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,10 @@ annotations are meta-annotated with `@Component`.
668668
https://start.spring.io/#!language=kotlin&type=gradle-project[start.spring.io] enables it by default, so, in practice,
669669
you can write your Kotlin beans without any additional `open` keyword, as in Java.
670670

671+
NOTE: The Kotlin code samples in Spring Framework documentation do not specify explicitly `open` on these classes and
672+
their member functions, they are written for projects using the `kotlin-allopen` plugin since this is the most commonly
673+
used setup.
674+
671675
=== Using Immutable Class Instances for Persistence
672676

673677
In Kotlin, it is convenient and considered to be a best practice to declare read-only properties

0 commit comments

Comments
 (0)