Skip to content

Commit

Permalink
Backport 2169215
Browse files Browse the repository at this point in the history
  • Loading branch information
i556354 committed Nov 27, 2023
1 parent a72d0b2 commit c6e2bf6
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 @@ -97,7 +97,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 c6e2bf6

Please sign in to comment.