HADOOP-13559. Remove close() within try-with-resources in ChecksumFileSystem/ChecksumFs classes. (Contributed by Aaron Fabbri)
This commit is contained in:
parent
69f7277625
commit
6fcb04c178
@ -197,7 +197,6 @@ public int read(long position, byte[] b, int off, int len)
|
||||
new ChecksumFSInputChecker(fs, file)) {
|
||||
checker.seek(position);
|
||||
nread = checker.read(b, off, len);
|
||||
checker.close();
|
||||
}
|
||||
return nread;
|
||||
}
|
||||
|
@ -179,7 +179,6 @@ public int read(long position, byte[] b, int off, int len)
|
||||
new ChecksumFSInputChecker(fs, file)) {
|
||||
checker.seek(position);
|
||||
nread = checker.read(b, off, len);
|
||||
checker.close();
|
||||
}
|
||||
return nread;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user