Skip to content

Commit 393d77c

Browse files
authored
[MRESOLVER-496] Paths everywhere, addendum 1 (apache#434)
Addendum 1: fix buffered-reader creation --- https://issues.apache.org/jira/browse/MRESOLVER-496
1 parent 2f94fd7 commit 393d77c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultChecksumProcessor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
import java.io.BufferedReader;
2626
import java.io.IOException;
27-
import java.io.InputStreamReader;
2827
import java.nio.charset.StandardCharsets;
2928
import java.nio.file.Files;
3029
import java.nio.file.Path;
@@ -51,8 +50,7 @@ public DefaultChecksumProcessor(PathProcessor pathProcessor) {
5150
public String readChecksum(final Path checksumPath) throws IOException {
5251
// for now do exactly same as happened before, but FileProcessor is a component and can be replaced
5352
String checksum = "";
54-
try (BufferedReader br = new BufferedReader(
55-
new InputStreamReader(Files.newInputStream(checksumPath), StandardCharsets.UTF_8), 512)) {
53+
try (BufferedReader br = Files.newBufferedReader(checksumPath, StandardCharsets.UTF_8)) {
5654
while (true) {
5755
String line = br.readLine();
5856
if (line == null) {

0 commit comments

Comments
 (0)