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
The following commit(s) were added to refs/heads/master by this push:
new 9bb3481 Fix checkstyle violation.
9bb3481 is described below
commit 9bb3481aec6468da930fa2cae9b0710f33b1c5dc
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Apr 14 10:30:20 2019 -0400
Fix checkstyle violation.
---
src/main/java/org/apache/commons/io/FileUtils.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/main/java/org/apache/commons/io/FileUtils.java
b/src/main/java/org/apache/commons/io/FileUtils.java
index 5a0fb76..de907f9 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -1137,6 +1137,15 @@ public class FileUtils {
destFile.setLastModified(newLastModifed);
}
+ /**
+ * Checks that two file lengths are equal.
+ *
+ * @param srcFile Source file.
+ * @param destFile Destination file.
+ * @param srcLen Source file length.
+ * @param dstLen Destination file length
+ * @throws IOException Thrown when the given sizes are not equal.
+ */
private static void checkEqualSizes(final File srcFile, final File
destFile, final long srcLen, final long dstLen)
throws IOException {
if (srcLen != dstLen) {