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 abstract class ChecksumFileSystem extends FilterFileSystem {
|
|||
new ChecksumFSInputChecker(fs, file)) {
|
||||
checker.seek(position);
|
||||
nread = checker.read(b, off, len);
|
||||
checker.close();
|
||||
}
|
||||
return nread;
|
||||
}
|
||||
|
|
|
@ -179,7 +179,6 @@ public abstract class ChecksumFs extends FilterFs {
|
|||
new ChecksumFSInputChecker(fs, file)) {
|
||||
checker.seek(position);
|
||||
nread = checker.read(b, off, len);
|
||||
checker.close();
|
||||
}
|
||||
return nread;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue