Skip to content

Commit 8caeb33

Browse files
committed
Polish Kotlin reference documentation
1 parent 3bd2154 commit 8caeb33

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/docs/asciidoc/kotlin.adoc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,25 @@ available as of https://blog.jetbrains.com/kotlin/2017/08/kotlin-1-1-4-is-out/[1
9999
+ Spring nullability annotations provide null-safety for the whole Spring Framework API to Kotlin developers,
100100
with the advantage of dealing with `null` related issues at compile time.
101101

102+
[NOTE]
103+
====
104+
Other libraries like Reactor and Spring Data leverage these annotations as well to provide
105+
null-safe APIs for Kotlin developers.
106+
====
107+
102108
For now, one needs to use a `-Xjsr305-annotations=enable` flag (specified via the
103109
`freeCompilerArgs` property with Maven or Gradle Kotlin plugins), but that should become
104110
the default behavior in an upcoming release of Kotlin.
105111

112+
[NOTE]
113+
====
106114
Make sure to https://github.com/sdeleuze/spring-kotlin-functional/blob/2d6ac07adfc2b8f25e91681dbb2b58a1c6cdf9a7/build.gradle.kts#L57[include JSR-305 JAR]
107115
until Kotlin 1.1.5 is released (it will fix https://youtrack.jetbrains.com/issue/KT-19419[KT-19419]).
108116
109-
[NOTE]
110-
====
111-
Other libraries like Reactor and Spring Data leverage these annotations as well to provide
112-
null-safe APIs for Kotlin developers.
117+
Support for generic type arguments, varargs and array elements is still work in progress,
118+
see https://youtrack.jetbrains.com/issue/KT-19592[KT-19592] and
119+
https://youtrack.jetbrains.com/issue/IDEA-153093[IDEA-153093] for up-to-date
120+
informations.
113121
====
114122

115123
[[classes-interfaces]]

0 commit comments

Comments
 (0)