Skip to content

Commit 6581803

Browse files
committed
Polish "Update Kotlin-related reference documentation"
See gh-18573
1 parent c6c9818 commit 6581803

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7614,23 +7614,20 @@ In order to avoid mixing different versions of Kotlin dependencies on the classp
76147614
With Maven, the Kotlin version can be customized via the `kotlin.version` property and plugin management is provided for `kotlin-maven-plugin`.
76157615
With Gradle, the Spring Boot plugin automatically aligns the `kotlin.version` with the version of the Kotlin plugin.
76167616

7617-
Spring Boot also manages the version of Coroutines dependencies by importing Kotlin
7618-
Coroutines BOM, which can be customized via the `kotlin-coroutines.version` property.
7617+
Spring Boot also manages the version of Coroutines dependencies by importing the Kotlin Coroutines BOM.
7618+
The version can be customized via the `kotlin-coroutines.version` property.
76197619

7620-
TIP: `org.jetbrains.kotlinx:kotlinx-coroutines-reactor` dependency is provided by default
7621-
if one bootstraps a Kotlin project with at least one Reactive dependency on https://start.spring.io/#!language=kotlin[start.spring.io].
7620+
TIP: `org.jetbrains.kotlinx:kotlinx-coroutines-reactor` dependency is provided by default if one bootstraps a Kotlin project with at least one reactive dependency on https://start.spring.io/#!language=kotlin[start.spring.io].
76227621

76237622

76247623
[[boot-features-kotlin-configuration-properties]]
76257624
=== `@ConfigurationProperties`
7626-
`@ConfigurationProperties` when used in combination with `@ConstructorBinding` (see the
7627-
<<boot-features-external-config-constructor-binding,dedicated documentation>> for more details)
7628-
supports classes with immutable `val` properties as shown in the following example:
7625+
`@ConfigurationProperties` when used in combination with <<boot-features-external-config-constructor-binding,`@ConstructorBinding`>> supports classes with immutable `val` properties as shown in the following example:
76297626

76307627
[source,kotlin,indent=0]
76317628
----
7632-
@ConfigurationProperties("example.kotlin")
76337629
@ConstructorBinding
7630+
@ConfigurationProperties("example.kotlin")
76347631
data class KotlinExampleProperties(
76357632
val name: String,
76367633
val description: String,
@@ -7650,8 +7647,7 @@ Note that some features (such as detecting the default value or deprecated items
76507647

76517648
[[boot-features-kotlin-testing]]
76527649
=== Testing
7653-
While it is possible to use JUnit 4 to test Kotlin code, JUnit 5 now provided by default
7654-
with Spring Boot is recommended.
7650+
While it is possible to use JUnit 4 to test Kotlin code, JUnit 5 is provided by default and is recommended.
76557651
JUnit 5 enables a test class to be instantiated once and reused for all of the class's tests.
76567652
This makes it possible to use `@BeforeClass` and `@AfterClass` annotations on non-static methods, which is a good fit for Kotlin.
76577653

0 commit comments

Comments
 (0)