Skip to content

Commit

Permalink
[MRESOLVER-496] Paths everywhere, addendum 1 (#434)
Browse files Browse the repository at this point in the history
Addendum 1: fix buffered-reader creation

---

https://issues.apache.org/jira/browse/MRESOLVER-496
  • Loading branch information
cstamas authored Feb 20, 2024
1 parent 2f94fd7 commit 393d77c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
Expand All @@ -51,8 +50,7 @@ public DefaultChecksumProcessor(PathProcessor pathProcessor) {
public String readChecksum(final Path checksumPath) throws IOException {
// for now do exactly same as happened before, but FileProcessor is a component and can be replaced
String checksum = "";
try (BufferedReader br = new BufferedReader(
new InputStreamReader(Files.newInputStream(checksumPath), StandardCharsets.UTF_8), 512)) {
try (BufferedReader br = Files.newBufferedReader(checksumPath, StandardCharsets.UTF_8)) {
while (true) {
String line = br.readLine();
if (line == null) {
Expand Down

0 comments on commit 393d77c

Please sign in to comment.