Skip to content

Commit 28e27d5

Browse files
committed
Point to JIRA with details of inconsistency
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1488711 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7f15b0e commit 28e27d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ private static void doCopyFile(final File srcFile, final File destFile, final bo
11451145
fos = new FileOutputStream(destFile);
11461146
input = fis.getChannel();
11471147
output = fos.getChannel();
1148-
final long size = input.size();
1148+
final long size = input.size(); // TODO See IO-386
11491149
long pos = 0;
11501150
long count = 0;
11511151
while (pos < size) {
@@ -1159,8 +1159,8 @@ private static void doCopyFile(final File srcFile, final File destFile, final bo
11591159
IOUtils.closeQuietly(fis);
11601160
}
11611161

1162-
final long srcLen = srcFile.length();
1163-
final long dstLen = destFile.length();
1162+
final long srcLen = srcFile.length(); // TODO See IO-386
1163+
final long dstLen = destFile.length(); // TODO See IO-386
11641164
if (srcLen != dstLen) {
11651165
throw new IOException("Failed to copy full contents from '" +
11661166
srcFile + "' to '" + destFile + "' Expected length: " + srcLen +" Actual: " + dstLen);

0 commit comments

Comments
 (0)