Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jveverka committed Dec 18, 2022
1 parent 5a3e389 commit 2c4f3c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static String getFileChecksum(Path file) throws NoSuchAlgorithmException,
MessageDigest digest = MessageDigest.getInstance("SHA-256");
FileInputStream fis = new FileInputStream(file.toFile());

byte[] byteArray = new byte[10240];
byte[] byteArray = new byte[102400];
int bytesCount = 0;
while ((bytesCount = fis.read(byteArray)) != -1) {
digest.update(byteArray, 0, bytesCount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.io.IOException;
import java.nio.file.Path;
import java.security.NoSuchAlgorithmException;
import java.util.Map;

public class Main {

Expand Down Expand Up @@ -107,7 +106,6 @@ public static void main(String[] args) throws NoSuchAlgorithmException, IOExcept
LOGGER.info("# Duration : {}", FileUtils.getDuration(duration));
LOGGER.info("#**************************************************");

LOGGER.info("");
if (context.hasErrors()) {
LOGGER.error("ERRORS found: {}", context.getErrors().size());
for (String error : context.getErrors()) {
Expand Down

0 comments on commit 2c4f3c3

Please sign in to comment.