Skip to content

Commit 290cc73

Browse files
committed
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
1 parent 8a30bc2 commit 290cc73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docs/asciidoc/core/core-beans.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4688,8 +4688,9 @@ example:
46884688
----
46894689
class SimpleMovieLister {
46904690
4691-
@Required
46924691
lateinit var movieFinder: MovieFinder
4692+
@Required
4693+
set
46934694
46944695
// ...
46954696
}

0 commit comments

Comments
 (0)