HBASE-21056 Findbugs false positive: BucketCache.persistToFile may fail to clean up java.io.OutputStream

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Sean Busbey 2018-08-15 09:24:55 -05:00
parent e8eb366514
commit d159b1f8bb
1 changed files with 2 additions and 0 deletions

View File

@ -1081,6 +1081,8 @@ public class BucketCache implements BlockCache, HeapSize {
/**
* @see #retrieveFromFile(int[])
*/
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value="OBL_UNSATISFIED_OBLIGATION",
justification = "false positive, try-with-resources ensures close is called.")
private void persistToFile() throws IOException {
assert !cacheEnabled;
if (!ioEngine.isPersistent()) {