Skip to content

Commit

Permalink
remove redundant File.length() check to fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gregallen committed Feb 4, 2019
1 parent 2b10af4 commit 054cf81
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/java/org/codehaus/plexus/util/FileUtils.java
Expand Up @@ -1080,12 +1080,6 @@ public static void copyFile( final File source, final File destination )
mkdirsFor( destination );

doCopyFile( source, destination );

if ( source.length() != destination.length() )
{
String message = "Failed to copy full contents from " + source + " to " + destination;
throw new IOException( message );
}
}

private static void doCopyFile( File source, File destination )
Expand Down

0 comments on commit 054cf81

Please sign in to comment.