Harmonize Period conversion support
Closes gh-21574
This commit is contained in:
@@ -31,11 +31,10 @@ import org.springframework.util.ObjectUtils;
|
|||||||
*
|
*
|
||||||
* @author Eddú Meléndez
|
* @author Eddú Meléndez
|
||||||
* @author Edson Chávez
|
* @author Edson Chávez
|
||||||
* @since 2.3.0
|
|
||||||
* @see PeriodFormat
|
* @see PeriodFormat
|
||||||
* @see PeriodUnit
|
* @see PeriodUnit
|
||||||
*/
|
*/
|
||||||
public class PeriodToStringConverter implements GenericConverter {
|
final class PeriodToStringConverter implements GenericConverter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<ConvertiblePair> getConvertibleTypes() {
|
public Set<ConvertiblePair> getConvertibleTypes() {
|
||||||
|
|||||||
@@ -32,11 +32,10 @@ import org.springframework.util.ObjectUtils;
|
|||||||
*
|
*
|
||||||
* @author Eddú Meléndez
|
* @author Eddú Meléndez
|
||||||
* @author Edson Chávez
|
* @author Edson Chávez
|
||||||
* @since 2.3.0
|
|
||||||
* @see PeriodFormat
|
* @see PeriodFormat
|
||||||
* @see PeriodUnit
|
* @see PeriodUnit
|
||||||
*/
|
*/
|
||||||
public class StringToPeriodConverter implements GenericConverter {
|
final class StringToPeriodConverter implements GenericConverter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes() {
|
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes() {
|
||||||
|
|||||||
Reference in New Issue
Block a user