diff --git a/java/src/main/java/org/rocksdb/RocksDB.java b/java/src/main/java/org/rocksdb/RocksDB.java index a8b8919c3a67..2b9aa1c1730e 100644 --- a/java/src/main/java/org/rocksdb/RocksDB.java +++ b/java/src/main/java/org/rocksdb/RocksDB.java @@ -673,7 +673,7 @@ public void closeE() throws RocksDBException { *

* See also {@link #close()}. */ - @SuppressWarnings("PMD.EmptyCatchBlock") + @SuppressWarnings("PMD.EmptyCatchBlock","PMD.CloseResource") @Override public void close() { final List removeIterators = new ArrayList<>(ownedIterators);