From 8154e672ddc91e07e8cbd77bc8511b263d94a4ce Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sat, 28 Mar 2020 08:45:57 +0100 Subject: [PATCH] Polish See gh-20704 --- .../src/docs/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index fec26ff8dc..1166ba54c6 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -1379,7 +1379,7 @@ These are: The default unit is milliseconds and can be overridden using `@DurationUnit` as illustrated in the sample above. -TIP: If you are upgrading from a previous version that is simply using `Long` to express the duration, make sure to define the unit (using `@DurationUnit`) if it isn't milliseconds alongside the switch to `Duration`. +TIP: If you are upgrading a `Long` property, make sure to define the unit (using `@DurationUnit`) if it isn't milliseconds. Doing so gives a transparent upgrade path while supporting a much richer format.