mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
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
This commit is contained in:
@@ -4688,8 +4688,9 @@ example:
|
||||
----
|
||||
class SimpleMovieLister {
|
||||
|
||||
@Required
|
||||
lateinit var movieFinder: MovieFinder
|
||||
@Required
|
||||
set
|
||||
|
||||
// ...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user