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

This commit is contained in:
Mingliang Liu 2016-08-29 13:04:28 -07:00
parent 69f7277625
commit 6fcb04c178
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;
}