File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 24
24
25
25
import java .io .BufferedReader ;
26
26
import java .io .IOException ;
27
- import java .io .InputStreamReader ;
28
27
import java .nio .charset .StandardCharsets ;
29
28
import java .nio .file .Files ;
30
29
import java .nio .file .Path ;
@@ -51,8 +50,7 @@ public DefaultChecksumProcessor(PathProcessor pathProcessor) {
51
50
public String readChecksum (final Path checksumPath ) throws IOException {
52
51
// for now do exactly same as happened before, but FileProcessor is a component and can be replaced
53
52
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 )) {
56
54
while (true ) {
57
55
String line = br .readLine ();
58
56
if (line == null ) {
You can’t perform that action at this time.
0 commit comments