From b9541b6ec2a007470202ca00acca0a74ce53ba21 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 25 Mar 2019 22:16:07 +0200 Subject: [PATCH] declare LockHolder as implementing AutoClosable (instead of Closable) --- app/src/main/java/net/ktnx/mobileledger/utils/LockHolder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5