]> git.ktnx.net Git - mobile-ledger.git/commitdiff
declare LockHolder as implementing AutoClosable (instead of Closable)
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 25 Mar 2019 20:16:07 +0000 (22:16 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 25 Mar 2019 20:16:50 +0000 (22:16 +0200)
app/src/main/java/net/ktnx/mobileledger/utils/LockHolder.java

index f0c976dd96612720d47a1cd46bc97c60d55cb536..dea79ec4aef66f4b60f693e5319719c2b9545e50 100644 (file)
 
 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;