HADOOP-13559. Remove close() within try-with-resources in ChecksumFileSystem/ChecksumFs classes. (Contributed by Aaron Fabbri)

(cherry picked from commit 6fcb04c178)
This commit is contained in:
Mingliang Liu 2016-08-29 13:04:28 -07:00
parent f6578999d1
commit 250ddf155f
2 changed files with 0 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}