We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbaad15 commit 9e61d19Copy full SHA for 9e61d19
jooby/src/main/java/io/jooby/internal/converter/BuiltinConverter.java
@@ -102,8 +102,8 @@ public boolean supports(@NonNull Class<?> type) {
102
try {
103
return java.time.Duration.parse(value.value());
104
} catch (DateTimeParseException x) {
105
- var nanos = MILLISECONDS.convert(parseDuration(value.value()), NANOSECONDS);
106
- return java.time.Duration.ofMillis(nanos);
+ var millis = MILLISECONDS.convert(parseDuration(value.value()), NANOSECONDS);
+ return java.time.Duration.ofMillis(millis);
107
}
108
109
0 commit comments