diff --git a/src/docs/asciidoc/languages/kotlin.adoc b/src/docs/asciidoc/languages/kotlin.adoc index 8b557af245..e1e0448a01 100644 --- a/src/docs/asciidoc/languages/kotlin.adoc +++ b/src/docs/asciidoc/languages/kotlin.adoc @@ -30,6 +30,8 @@ and https://search.maven.org/artifact/org.jetbrains.kotlin/kotlin-reflect[`kotli to be present on the classpath. They are provided by default if you bootstrap a Kotlin project on https://start.spring.io/#!language=kotlin&type=gradle-project[start.spring.io]. +WARNING: Kotlin https://kotlinlang.org/docs/inline-classes.html[inline classes] are not yet supported. + NOTE: The https://github.com/FasterXML/jackson-module-kotlin[Jackson Kotlin module] is required for serializing or deserializing JSON data for Kotlin classes with Jackson, so make sure to add the `com.fasterxml.jackson.module:jackson-module-kotlin` dependency to your project if you have such need. diff --git a/src/docs/asciidoc/web/webflux.adoc b/src/docs/asciidoc/web/webflux.adoc index 0bc8f6c6f8..59c6b1a4f6 100644 --- a/src/docs/asciidoc/web/webflux.adoc +++ b/src/docs/asciidoc/web/webflux.adoc @@ -2998,7 +2998,7 @@ configure or customize message writing. public ResponseEntity handle() { String body = ... ; String etag = ... ; - return ResponseEntity.ok().eTag(etag).build(body); + return ResponseEntity.ok().eTag(etag).body(body); } ---- [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"] diff --git a/src/docs/asciidoc/web/webmvc.adoc b/src/docs/asciidoc/web/webmvc.adoc index 3b103c1612..65b240bccc 100644 --- a/src/docs/asciidoc/web/webmvc.adoc +++ b/src/docs/asciidoc/web/webmvc.adoc @@ -3392,7 +3392,7 @@ See <> for details. public ResponseEntity handle() { String body = ... ; String etag = ... ; - return ResponseEntity.ok().eTag(etag).build(body); + return ResponseEntity.ok().eTag(etag).body(body); } ---- [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]