Skip to content

Commit 4f6f6fe

Browse files
committed
Remove unnecessary .get() call due to method returning Bookkeeper directly
1 parent 92f292c commit 4f6f6fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/OffloadLedgerDeleteTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,19 +285,19 @@ public void readEntryFailed(ManagedLedgerException exception, Object ctx) {
285285

286286
Awaitility.await().untilAsserted(() -> {
287287
try {
288-
factory.getBookKeeper().get().openLedger(ledger3, ml.digestType, ml.config.getPassword());
288+
factory.getBookKeeper().openLedger(ledger3, ml.digestType, ml.config.getPassword());
289289
Assert.fail("Should fail: the ledger has been deleted");
290290
} catch (BKException.BKNoSuchLedgerExistsException ex) {
291291
// Expected.
292292
}
293293
try {
294-
factory.getBookKeeper().get().openLedger(ledger2, ml.digestType, ml.config.getPassword());
294+
factory.getBookKeeper().openLedger(ledger2, ml.digestType, ml.config.getPassword());
295295
Assert.fail("Should fail: the ledger has been deleted");
296296
} catch (BKException.BKNoSuchLedgerExistsException ex) {
297297
// Expected.
298298
}
299299
try {
300-
factory.getBookKeeper().get().openLedger(ledger1, ml.digestType, ml.config.getPassword());
300+
factory.getBookKeeper().openLedger(ledger1, ml.digestType, ml.config.getPassword());
301301
Assert.fail("Should fail: the ledger has been deleted");
302302
} catch (BKException.BKNoSuchLedgerExistsException ex) {
303303
// Expected.

0 commit comments

Comments
 (0)