8297682: Use Collections.emptyIterator where applicable

Reviewed-by: stsypanov, alanb, jpai
This commit is contained in:
Andrey Turbanov 2022-12-21 08:15:11 +00:00
parent f36e144923
commit 85f9b37d71
2 changed files with 2 additions and 4 deletions

View file

@ -189,8 +189,7 @@ abstract class UnixFileSystem
sm.checkRead(rootDirectory.toString());
return allowedList.iterator();
} catch (SecurityException x) {
List<Path> disallowed = Collections.emptyList();
return disallowed.iterator();
return Collections.emptyIterator(); //disallowed
}
}
};