This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git

commit 857f0f39f33a715fc66cb7cac9a2d1e689c41fef
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Thu Jul 30 10:34:39 2020 -0400

    Sort members.
---
 .../java/org/apache/commons/io/file/PathUtils.java | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/file/PathUtils.java 
b/src/main/java/org/apache/commons/io/file/PathUtils.java
index a778039..4789a7e 100644
--- a/src/main/java/org/apache/commons/io/file/PathUtils.java
+++ b/src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -52,22 +52,6 @@ import org.apache.commons.io.file.Counters.PathCounters;
 public final class PathUtils {
 
     /**
-     * Accumulates file tree information in a {@link AccumulatorPathVisitor}.
-     *
-     * @param directory The directory to accumulate information.
-     * @param maxDepth See {@link 
Files#walkFileTree(Path,Set,int,FileVisitor)}.
-     * @param linkOptions Options indicating how symbolic links are handled.
-     * @param fileVisitOptions See {@link 
Files#walkFileTree(Path,Set,int,FileVisitor)}.
-     * @throws IOException if an I/O error is thrown by a visitor method.
-     * @return file tree information.
-     */
-    private static AccumulatorPathVisitor accumulate(final Path directory, 
final int maxDepth,
-            final LinkOption[] linkOptions, final FileVisitOption[] 
fileVisitOptions) throws IOException {
-        return visitFileTree(AccumulatorPathVisitor.withLongCounters(), 
directory,
-                toFileVisitOptionSet(fileVisitOptions), maxDepth);
-    }
-
-    /**
      * Private worker/holder that computes and tracks relative path names and 
their equality. We reuse the sorted
      * relative lists when comparing directories.
      */
@@ -146,6 +130,22 @@ public final class PathUtils {
     public static final OpenOption[] EMPTY_OPEN_OPTION_ARRAY = new 
OpenOption[0];
 
     /**
+     * Accumulates file tree information in a {@link AccumulatorPathVisitor}.
+     *
+     * @param directory The directory to accumulate information.
+     * @param maxDepth See {@link 
Files#walkFileTree(Path,Set,int,FileVisitor)}.
+     * @param linkOptions Options indicating how symbolic links are handled.
+     * @param fileVisitOptions See {@link 
Files#walkFileTree(Path,Set,int,FileVisitor)}.
+     * @throws IOException if an I/O error is thrown by a visitor method.
+     * @return file tree information.
+     */
+    private static AccumulatorPathVisitor accumulate(final Path directory, 
final int maxDepth,
+            final LinkOption[] linkOptions, final FileVisitOption[] 
fileVisitOptions) throws IOException {
+        return visitFileTree(AccumulatorPathVisitor.withLongCounters(), 
directory,
+                toFileVisitOptionSet(fileVisitOptions), maxDepth);
+    }
+
+    /**
      * Cleans a directory including sub-directories without deleting 
directories.
      *
      * @param directory directory to clean.

Reply via email to