RFR: 8275536: [TEST] java.io.File and java.nio.File should return the same timestamp for lastModified
Brian Burkhalter
bpb at openjdk.java.net
Thu Oct 21 02:19:08 UTC 2021
On Thu, 21 Oct 2021 00:27:20 GMT, Clive Verghese <cverghese at openjdk.org> wrote:
> The test validated that the precision returned by `java.io.File.lastModified` and `java.nio.file.Files.getLastModifiedTime` are the same.
test/jdk/java/nio/file/Files/LastModifiedTest.java line 43:
> 41: public class LastModifiedTest {
> 42:
> 43: private final Instant milliPrecision = Instant.ofEpochMilli(1999L);
This field could be `static final` and in which case named `MILLI_PRECISION`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6054
More information about the nio-dev
mailing list