From b21c09020da7b237731d69c5c96b163e810c200f Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 26 May 2020 18:21:18 +0200 Subject: [PATCH] Polish "Polish duration support javadoc" See gh-21579 --- .../org/springframework/boot/convert/DurationStyle.java | 6 ++++-- .../java/org/springframework/boot/convert/PeriodStyle.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/DurationStyle.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/DurationStyle.java index 63ff1704ec3..36fd244ecf4 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/DurationStyle.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/DurationStyle.java @@ -134,7 +134,8 @@ public enum DurationStyle { * Detect the style then parse the value to return a duration. * @param value the value to parse * @return the parsed duration - * @throws IllegalArgumentException if the value is not a known style or cannot be parsed + * @throws IllegalArgumentException if the value is not a known style or cannot be + * parsed */ public static Duration detectAndParse(String value) { return detectAndParse(value, null); @@ -146,7 +147,8 @@ public enum DurationStyle { * @param unit the duration unit to use if the value doesn't specify one ({@code null} * will default to ms) * @return the parsed duration - * @throws IllegalArgumentException if the value is not a known style or cannot be parsed + * @throws IllegalArgumentException if the value is not a known style or cannot be + * parsed */ public static Duration detectAndParse(String value, ChronoUnit unit) { return detect(value).parse(value, unit); diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/PeriodStyle.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/PeriodStyle.java index 228fdf28eb7..ac457727dd6 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/PeriodStyle.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/PeriodStyle.java @@ -176,7 +176,8 @@ public enum PeriodStyle { * Detect the style then parse the value to return a period. * @param value the value to parse * @return the parsed period - * @throws IllegalArgumentException if the value is not a known style or cannot be parsed + * @throws IllegalArgumentException if the value is not a known style or cannot be + * parsed */ public static Period detectAndParse(String value) { return detectAndParse(value, null); @@ -188,7 +189,8 @@ public enum PeriodStyle { * @param unit the period unit to use if the value doesn't specify one ({@code null} * will default to ms) * @return the parsed period - * @throws IllegalArgumentException if the value is not a known style or cannot be parsed + * @throws IllegalArgumentException if the value is not a known style or cannot be + * parsed */ public static Period detectAndParse(String value, ChronoUnit unit) { return detect(value).parse(value, unit);