You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/06/19 12:58:37 UTC
[commons-io] 01/03: Sort members
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 17f64e0856ac2d407462a0917ee6e2a5fa9ab92d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jun 19 08:12:56 2022 -0400
Sort members
---
src/main/java/org/apache/commons/io/FileUtils.java | 30 +++++++++++-----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/FileUtils.java b/src/main/java/org/apache/commons/io/FileUtils.java
index 2951c333..537ebe49 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -194,15 +194,6 @@ public class FileUtils {
*/
public static final File[] EMPTY_FILE_ARRAY = {};
- /**
- * Instances should NOT be constructed in standard programming.
- * @deprecated Will be private in 3.0.
- */
- @Deprecated
- public FileUtils() { //NOSONAR
-
- }
-
/**
* Copies the given array and adds StandardCopyOption.COPY_ATTRIBUTES.
*
@@ -2615,7 +2606,6 @@ public class FileUtils {
return Files.readAllLines(file.toPath(), charset);
}
-
/**
* Reads the contents of a file line by line to a List of Strings. The file is always closed.
*
@@ -2634,6 +2624,7 @@ public class FileUtils {
return readLines(file, Charsets.toCharset(charsetName));
}
+
private static void requireAbsent(final File file, final String name) throws FileExistsException {
if (file.exists()) {
throw new FileExistsException(String.format("File element in parameter '%s' already exists: '%s'", name, file));
@@ -3152,8 +3143,6 @@ public class FileUtils {
write(file, data, Charset.defaultCharset(), append);
}
- // Private method, must be invoked will a directory parameter
-
/**
* Writes a CharSequence to a file creating the file if it does not exist.
*
@@ -3167,6 +3156,8 @@ public class FileUtils {
write(file, data, charset, false);
}
+ // Private method, must be invoked will a directory parameter
+
/**
* Writes a CharSequence to a file creating the file if it does not exist.
*
@@ -3196,8 +3187,6 @@ public class FileUtils {
write(file, data, charsetName, false);
}
- // Must be called with a directory
-
/**
* Writes a CharSequence to a file creating the file if it does not exist.
*
@@ -3215,6 +3204,8 @@ public class FileUtils {
write(file, data, Charsets.toCharset(charsetName), append);
}
+ // Must be called with a directory
+
/**
* Writes a byte array to a file creating the file if it does not exist.
* <p>
@@ -3295,7 +3286,6 @@ public class FileUtils {
writeLines(file, null, lines, null, false);
}
-
/**
* Writes the {@code toString()} value of each item in a collection to
* the specified {@link File} line by line.
@@ -3312,6 +3302,7 @@ public class FileUtils {
writeLines(file, null, lines, null, append);
}
+
/**
* Writes the {@code toString()} value of each item in a collection to
* the specified {@link File} line by line.
@@ -3523,4 +3514,13 @@ public class FileUtils {
writeStringToFile(file, data, Charsets.toCharset(charsetName), append);
}
+ /**
+ * Instances should NOT be constructed in standard programming.
+ * @deprecated Will be private in 3.0.
+ */
+ @Deprecated
+ public FileUtils() { //NOSONAR
+
+ }
+
}