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 f0c976d..dea79ec 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;