From 71e91d9c2ecf4111ff2e980ae77fd31c0653d10c Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Fri, 22 Sep 2017 11:49:53 -0700 Subject: [PATCH] 8185458: Added comment for Files.notExists in FileUtils test library Reviewed-by: chegar --- test/lib/jdk/test/lib/util/FileUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lib/jdk/test/lib/util/FileUtils.java b/test/lib/jdk/test/lib/util/FileUtils.java index a5e17779061..925012810cc 100644 --- a/test/lib/jdk/test/lib/util/FileUtils.java +++ b/test/lib/jdk/test/lib/util/FileUtils.java @@ -98,6 +98,7 @@ public final class FileUtils { while (true) { try { Files.delete(path); + // Checks for absence of the file. Semantics of Files.exists() is not the same. while (!Files.notExists(path)) { times++; if (times > MAX_RETRY_DELETE_TIMES) {