8185458: Added comment for Files.notExists in FileUtils test library

Reviewed-by: chegar
This commit is contained in:
Andrey Nazarov 2017-09-22 11:49:53 -07:00
parent b45c9233a4
commit 71e91d9c2e

View file

@ -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) {