6838333: New I/O: Update file system API to jsr203/nio2-b101
6844313: New I/O: File timestamps should be represented by a FileTime rather than a long+TimeUnit
Reviewed-by: sherman
diff --git a/test/java/nio/file/TestUtil.java b/test/java/nio/file/TestUtil.java
index c19e28f..2436a45 100644
--- a/test/java/nio/file/TestUtil.java
+++ b/test/java/nio/file/TestUtil.java
@@ -55,7 +55,7 @@
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
try {
- file.delete(false);
+ file.delete();
} catch (IOException x) {
System.err.format("Unable to delete %s: %s\n", file, x);
}
@@ -64,7 +64,7 @@
@Override
public FileVisitResult postVisitDirectory(Path dir, IOException exc) {
try {
- dir.delete(false);
+ dir.delete();
} catch (IOException x) {
System.err.format("Unable to delete %s: %s\n", dir, x);
}
@@ -78,7 +78,7 @@
});
}
- static void deleteUnchecked(FileRef file) {
+ static void deleteUnchecked(Path file) {
try {
file.delete();
} catch (IOException exc) {
@@ -114,7 +114,7 @@
Path target = dir.resolve("testtarget");
try {
link.createSymbolicLink(target);
- target.delete(false);
+ link.delete();
return true;
} catch (UnsupportedOperationException x) {
return false;