From 49ab5de91c8ee867ea87591a4aa0137e90f1d551 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sat, 28 Mar 2020 10:37:16 +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 1166ba54c6..76692f4733 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 @@ -1413,7 +1413,7 @@ These are: The default unit is bytes and can be overridden using `@DataSizeUnit` as illustrated in the sample above. -TIP: If you are upgrading from a previous version that is simply using `Long` to express the size, make sure to define the unit (using `@DataSizeUnit`) if it isn't bytes alongside the switch to `DataSize`. +TIP: If you are upgrading a `Long` property, make sure to define the unit (using `@DataSizeUnit`) if it isn't bytes. Doing so gives a transparent upgrade path while supporting a much richer format.