You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/asciidoc/kotlin.adoc
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -99,17 +99,25 @@ available as of https://blog.jetbrains.com/kotlin/2017/08/kotlin-1-1-4-is-out/[1
99
99
+ Spring nullability annotations provide null-safety for the whole Spring Framework API to Kotlin developers,
100
100
with the advantage of dealing with `null` related issues at compile time.
101
101
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
+
102
108
For now, one needs to use a `-Xjsr305-annotations=enable` flag (specified via the
103
109
`freeCompilerArgs` property with Maven or Gradle Kotlin plugins), but that should become
104
110
the default behavior in an upcoming release of Kotlin.
105
111
112
+
[NOTE]
113
+
====
106
114
Make sure to https://github.com/sdeleuze/spring-kotlin-functional/blob/2d6ac07adfc2b8f25e91681dbb2b58a1c6cdf9a7/build.gradle.kts#L57[include JSR-305 JAR]
107
115
until Kotlin 1.1.5 is released (it will fix https://youtrack.jetbrains.com/issue/KT-19419[KT-19419]).
108
116
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
0 commit comments