Cleanup (javadoc)

This commit is contained in:
Roman Shevchenko
2019-02-11 23:48:27 +01:00
parent 86d8d0b9b7
commit 5aa869bde5
2 changed files with 3 additions and 3 deletions
@@ -106,8 +106,8 @@ public abstract class NewVirtualFileSystem extends VirtualFileSystem implements
public abstract FileAttributes getAttributes(@NotNull VirtualFile file);
/**
* @return true if this file is a directory which contains some children.
* Override if your file system can answer this question more efficiently (e.g. without enumerating all children).
* Returns {@code true} if {@code path} represents a directory with at least one child.
* Override if your file system can answer this question more efficiently (without enumerating children).
*/
public boolean hasChildren(@NotNull VirtualFile file) {
return list(file).length != 0;
@@ -754,7 +754,7 @@ public abstract class LocalFileSystemBase extends LocalFileSystem {
}
/**
* @return true if {@code path} represents a directory which has children.
* @return {@code true} if {@code path} represents a directory with at least one child.
*/
public static boolean hasChildren(@NotNull Path path) {
// make sure to not load all children