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

Backport-of: 2169215
  • Loading branch information
Andrew Lu authored and GoeLin committed Nov 29, 2023
1 parent cf544e0 commit 3a3efef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/jdk/test/lib/util/FileUtils.java
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

1 comment on commit 3a3efef

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.