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:
parent
faed3e457d
commit
1110e23a61
|
@ -1044,6 +1044,8 @@ public class BucketCache implements BlockCache, HeapSize {
|
||||||
/**
|
/**
|
||||||
* @see #retrieveFromFile(int[])
|
* @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 {
|
private void persistToFile() throws IOException {
|
||||||
assert !cacheEnabled;
|
assert !cacheEnabled;
|
||||||
if (!ioEngine.isPersistent()) {
|
if (!ioEngine.isPersistent()) {
|
||||||
|
|
Loading…
Reference in New Issue