See gh-20704
This commit is contained in:
Stephane Nicoll
2020-03-28 08:45:57 +01:00
parent 85c997959e
commit 8154e672dd

View File

@@ -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.