Skip to content

Commit 5b8e436

Browse files
committed
Merge branch '6.2.x'
2 parents 3737637 + 724700d commit 5b8e436

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

framework-docs/modules/ROOT/pages/languages/kotlin/annotations.adoc

+2-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ For example, `@Autowired lateinit var thing: Thing` implies that a bean
1414
of type `Thing` must be registered in the application context, while `@Autowired lateinit var thing: Thing?`
1515
does not raise an error if such a bean does not exist.
1616

17-
Following the same principle, `@Bean fun play(toy: Toy, car: Car?) = Baz(toy, Car)` implies
17+
Following the same principle, `@Bean fun play(toy: Toy, car: Car?) = Baz(toy, car)` implies
1818
that a bean of type `Toy` must be registered in the application context, while a bean of
1919
type `Car` may or may not exist. The same behavior applies to autowired constructor parameters.
2020

2121
NOTE: If you use bean validation on classes with properties or a primary constructor
22-
parameters, you may need to use
22+
with parameters, you may need to use
2323
{kotlin-docs}/annotations.html#annotation-use-site-targets[annotation use-site targets],
2424
such as `@field:NotNull` or `@get:Size(min=5, max=15)`, as described in
2525
{stackoverflow-site}/a/35853200/1092077[this Stack Overflow response].
2626

27-
28-
29-

0 commit comments

Comments
 (0)