Skip to content

Commit 0092341

Browse files
author
Gary Gregory
committed
In-line.
1 parent b83a633 commit 0092341

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,7 @@ public static Checksum checksum(final File file, final Checksum checksum) throws
318318
* @since 1.3
319319
*/
320320
public static long checksumCRC32(final File file) throws IOException {
321-
final CRC32 crc = new CRC32();
322-
checksum(file, crc);
323-
return crc.getValue();
321+
return checksum(file, new CRC32()).getValue();
324322
}
325323

326324
/**

0 commit comments

Comments
 (0)