8303919: Instant.ofEpochMilli says it can throw an exception that it can't

Reviewed-by: rriggs
This commit is contained in:
Eamonn McManus 2023-05-02 23:26:01 +00:00
parent 76991c8129
commit 74667e3d56

View File

@ -342,7 +342,6 @@ public final class Instant
*
* @param epochMilli the number of milliseconds from 1970-01-01T00:00:00Z
* @return an instant, not null
* @throws DateTimeException if the instant exceeds the maximum or minimum instant
*/
public static Instant ofEpochMilli(long epochMilli) {
long secs = Math.floorDiv(epochMilli, 1000);