Skip to content

Commit

Permalink
Use System.err.println instead of System.out.println in line 80 of te…
Browse files Browse the repository at this point in the history
…st/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java
  • Loading branch information
sendaoYan committed Oct 9, 2024
1 parent 6d4eb11 commit a086f88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static void test(Path top) throws IOException {
FileTime creationTime = creationTime(file);
Instant now = Instant.now();
if (Math.abs(creationTime.toMillis()-now.toEpochMilli()) > 10000L) {
System.out.println("creationTime.toMillis() == " + creationTime.toMillis());
System.err.println("creationTime.toMillis() == " + creationTime.toMillis());
System.err.println("File creation time reported as: " + creationTime);
throw new RuntimeException("Expected to be close to: " + now);
}
Expand Down

0 comments on commit a086f88

Please sign in to comment.