changeset 47249:82c43b3c0ea0

8185458: Added comment for Files.notExists in FileUtils test library Reviewed-by: chegar
author anazarov
date Fri, 22 Sep 2017 11:49:53 -0700
parents 22d665f53a4a
children a0f26f0da4f1
files test/lib/jdk/test/lib/util/FileUtils.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {