Skip to content

Commit fe37001

Browse files
author
Gary Gregory
committed
Sort members.
1 parent e1a5fdd commit fe37001

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -369,24 +369,6 @@ public static PathCounters deleteFile(final Path file, final DeleteOption... opt
369369
return pathCounts;
370370
}
371371

372-
/**
373-
* Returns true if the given options contain {@link StandardDeleteOption#OVERRIDE_READ_ONLY}.
374-
*
375-
* @param options the array to test
376-
* @return true if the given options contain {@link StandardDeleteOption#OVERRIDE_READ_ONLY}.
377-
*/
378-
private static boolean overrideReadOnly(final DeleteOption[] options) {
379-
if (options == null) {
380-
return false;
381-
}
382-
for (final DeleteOption deleteOption : options) {
383-
if (deleteOption == StandardDeleteOption.OVERRIDE_READ_ONLY) {
384-
return true;
385-
}
386-
}
387-
return false;
388-
}
389-
390372
/**
391373
* Compares the file sets of two Paths to determine if they are equal or not while considering file contents. The
392374
* comparison includes all files in all sub-directories.
@@ -604,6 +586,24 @@ public static boolean isEmptyFile(final Path file) throws IOException {
604586
return Files.size(file) <= 0;
605587
}
606588

589+
/**
590+
* Returns true if the given options contain {@link StandardDeleteOption#OVERRIDE_READ_ONLY}.
591+
*
592+
* @param options the array to test
593+
* @return true if the given options contain {@link StandardDeleteOption#OVERRIDE_READ_ONLY}.
594+
*/
595+
private static boolean overrideReadOnly(final DeleteOption[] options) {
596+
if (options == null) {
597+
return false;
598+
}
599+
for (final DeleteOption deleteOption : options) {
600+
if (deleteOption == StandardDeleteOption.OVERRIDE_READ_ONLY) {
601+
return true;
602+
}
603+
}
604+
return false;
605+
}
606+
607607
/**
608608
* Relativizes all files in the given {@code collection} against a {@code parent}.
609609
*

0 commit comments

Comments
 (0)