8185458: Added comment for Files.notExists in FileUtils test library
authoranazarov
Fri, 22 Sep 2017 11:49:53 -0700
changeset 47249 82c43b3c0ea0
parent 47248 22d665f53a4a
child 47250 a0f26f0da4f1
8185458: Added comment for Files.notExists in FileUtils test library Reviewed-by: chegar
test/lib/jdk/test/lib/util/FileUtils.java
--- a/test/lib/jdk/test/lib/util/FileUtils.java	Fri Sep 22 14:06:11 2017 +0200
+++ b/test/lib/jdk/test/lib/util/FileUtils.java	Fri Sep 22 11:49:53 2017 -0700
@@ -98,6 +98,7 @@
         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) {