Simplify.

This commit is contained in:
Gary Gregory 2021-02-20 08:21:19 -05:00
parent 5689c91cf2
commit cda703ccb8
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class DurationUtils {
public static int toMillisInt(final Duration duration) {
Objects.requireNonNull(duration, "duration");
// intValue() does not do a narrowing conversion here
return DurationUtils.LONG_TO_INT_RANGE.fit(Long.valueOf(duration.toMillis())).intValue();
return LONG_TO_INT_RANGE.fit(Long.valueOf(duration.toMillis())).intValue();
}
}