mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (javadoc)
This commit is contained in:
@@ -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;
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user