Skip to content

Commit 857f0f3

Browse files
author
Gary Gregory
committed
Sort members.
1 parent 273406a commit 857f0f3

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/main/java/org/apache/commons/io/file/PathUtils.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,6 @@
5151
*/
5252
public final class PathUtils {
5353

54-
/**
55-
* Accumulates file tree information in a {@link AccumulatorPathVisitor}.
56-
*
57-
* @param directory The directory to accumulate information.
58-
* @param maxDepth See {@link Files#walkFileTree(Path,Set,int,FileVisitor)}.
59-
* @param linkOptions Options indicating how symbolic links are handled.
60-
* @param fileVisitOptions See {@link Files#walkFileTree(Path,Set,int,FileVisitor)}.
61-
* @throws IOException if an I/O error is thrown by a visitor method.
62-
* @return file tree information.
63-
*/
64-
private static AccumulatorPathVisitor accumulate(final Path directory, final int maxDepth,
65-
final LinkOption[] linkOptions, final FileVisitOption[] fileVisitOptions) throws IOException {
66-
return visitFileTree(AccumulatorPathVisitor.withLongCounters(), directory,
67-
toFileVisitOptionSet(fileVisitOptions), maxDepth);
68-
}
69-
7054
/**
7155
* Private worker/holder that computes and tracks relative path names and their equality. We reuse the sorted
7256
* relative lists when comparing directories.
@@ -145,6 +129,22 @@ private RelativeSortedPaths(final Path dir1, final Path dir2, final int maxDepth
145129
*/
146130
public static final OpenOption[] EMPTY_OPEN_OPTION_ARRAY = new OpenOption[0];
147131

132+
/**
133+
* Accumulates file tree information in a {@link AccumulatorPathVisitor}.
134+
*
135+
* @param directory The directory to accumulate information.
136+
* @param maxDepth See {@link Files#walkFileTree(Path,Set,int,FileVisitor)}.
137+
* @param linkOptions Options indicating how symbolic links are handled.
138+
* @param fileVisitOptions See {@link Files#walkFileTree(Path,Set,int,FileVisitor)}.
139+
* @throws IOException if an I/O error is thrown by a visitor method.
140+
* @return file tree information.
141+
*/
142+
private static AccumulatorPathVisitor accumulate(final Path directory, final int maxDepth,
143+
final LinkOption[] linkOptions, final FileVisitOption[] fileVisitOptions) throws IOException {
144+
return visitFileTree(AccumulatorPathVisitor.withLongCounters(), directory,
145+
toFileVisitOptionSet(fileVisitOptions), maxDepth);
146+
}
147+
148148
/**
149149
* Cleans a directory including sub-directories without deleting directories.
150150
*

0 commit comments

Comments
 (0)