mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 02:09:05 +00:00
Harmonize Period conversion support
Closes gh-21574
This commit is contained in:
+1
-2
@@ -31,11 +31,10 @@ import org.springframework.util.ObjectUtils;
|
||||
*
|
||||
* @author Eddú Meléndez
|
||||
* @author Edson Chávez
|
||||
* @since 2.3.0
|
||||
* @see PeriodFormat
|
||||
* @see PeriodUnit
|
||||
*/
|
||||
public class PeriodToStringConverter implements GenericConverter {
|
||||
final class PeriodToStringConverter implements GenericConverter {
|
||||
|
||||
@Override
|
||||
public Set<ConvertiblePair> getConvertibleTypes() {
|
||||
|
||||
+1
-2
@@ -32,11 +32,10 @@ import org.springframework.util.ObjectUtils;
|
||||
*
|
||||
* @author Eddú Meléndez
|
||||
* @author Edson Chávez
|
||||
* @since 2.3.0
|
||||
* @see PeriodFormat
|
||||
* @see PeriodUnit
|
||||
*/
|
||||
public class StringToPeriodConverter implements GenericConverter {
|
||||
final class StringToPeriodConverter implements GenericConverter {
|
||||
|
||||
@Override
|
||||
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes() {
|
||||
|
||||
Reference in New Issue
Block a user