Skip to content

Commit

Permalink
8227438: [TESTLIB] Determine if file exists by Files.exists in functi…
Browse files Browse the repository at this point in the history
…on FileUtils.deleteFileIfExistsWithRetry

Reviewed-by: lancea, joehw
  • Loading branch information
Frank Yuan committed Jul 15, 2019
1 parent 81a5994 commit 2169215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/jdk/test/lib/util/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static void deleteFileWithRetry(Path path) throws IOException {
*/
public static void deleteFileIfExistsWithRetry(Path path) throws IOException {
try {
if (Files.exists(path)) {
if (!Files.notExists(path)) {
deleteFileWithRetry0(path);
}
} catch (InterruptedException x) {
Expand Down

0 comments on commit 2169215

Please sign in to comment.