(File file)
| 792 | private static final TreeTraverser<File> FILE_TREE_TRAVERSER = |
| 793 | new TreeTraverser<File>() { |
| 794 | @Override |
| 795 | public Iterable<File> children(File file) { |
| 796 | // check isDirectory() just because it may be faster than listFiles() on a non-directory |
| 797 | if (file.isDirectory()) { |
| 798 | File[] files = file.listFiles(); |
| 799 | if (files != null) { |
| 800 | return Collections.unmodifiableList(Arrays.asList(files)); |
| 801 | } |
| 802 | } |
| 803 | |
| 804 | return Collections.emptyList(); |
| 805 | } |
| 806 | |
| 807 | @Override |
| 808 | public String toString() { |
nothing calls this directly
no test coverage detected