From 290cc73d3d513086ac2ff927e908859641a7412c Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 9 Jun 2022 13:13:43 +0200 Subject: [PATCH] Fix Kotlin example for @Required Since @Required can only be declared on a method, this commit moves the @Required declaration from the field to the "set" method. Closes gh-28590 --- src/docs/asciidoc/core/core-beans.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index 2a9728ba4cec..a9125b7d8f23 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -4688,8 +4688,9 @@ example: ---- class SimpleMovieLister { - @Required lateinit var movieFinder: MovieFinder + @Required + set // ... }