mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8303919: Instant.ofEpochMilli says it can throw an exception that it can't
Reviewed-by: rriggs
This commit is contained in:
parent
76991c8129
commit
74667e3d56
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue