Skip to content
Permalink
Browse files
support Duration
  • Loading branch information
mbenson committed Mar 10, 2022
1 parent 0a571c3 commit b81ff5a078ccd05d1c1b67d4621fb64ec428b0b4
Showing 1 changed file with 2 additions and 0 deletions.
@@ -22,6 +22,7 @@
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.time.Duration;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Locale;
@@ -70,6 +71,7 @@ class StringConversions {
cnv.put(Boolean.class, Boolean::valueOf);
cnv.put(String.class, Function.identity());
cnv.put(Region.class, Region::of);
cnv.put(Duration.class, Duration::parse);
CONVERTERS = Collections.unmodifiableMap(cnv);
}

0 comments on commit b81ff5a

Please sign in to comment.