From: Damyan Ivanov Date: Mon, 25 Mar 2019 20:16:07 +0000 (+0200) Subject: declare LockHolder as implementing AutoClosable (instead of Closable) X-Git-Tag: v0.8.1~9 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=b9541b6ec2a007470202ca00acca0a74ce53ba21;p=mobile-ledger.git declare LockHolder as implementing AutoClosable (instead of Closable) --- diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/LockHolder.java b/app/src/main/java/net/ktnx/mobileledger/utils/LockHolder.java index f0c976dd..dea79ec4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/LockHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/LockHolder.java @@ -17,10 +17,9 @@ package net.ktnx.mobileledger.utils; -import java.io.Closeable; import java.util.concurrent.locks.Lock; -public class LockHolder implements Closeable { +public class LockHolder implements AutoCloseable { private Lock rLock, wLock; LockHolder(Lock rLock) { this.rLock = rLock;