Skip to content

Commit

Permalink
Fix Kotlin example for @required
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sbrannen committed Jun 9, 2022
1 parent 8a30bc2 commit 290cc73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docs/asciidoc/core/core-beans.adoc
Expand Up @@ -4688,8 +4688,9 @@ example:
----
class SimpleMovieLister {
@Required
lateinit var movieFinder: MovieFinder
@Required
set
// ...
}
Expand Down

0 comments on commit 290cc73

Please sign in to comment.