mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-133 CloseablesManager.checkState is throwing java.lang.IllegalStateException
This commit is contained in:
@@ -29,7 +29,7 @@ final class CloseablesManager implements Closeable {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(CloseablesManager.class.getName());
|
||||
|
||||
private boolean isClosed = false;
|
||||
private List<Closeable> closeables = new ArrayList<Closeable>();
|
||||
private final List<Closeable> closeables = new ArrayList<>();
|
||||
|
||||
private void checkState() {
|
||||
if (isClosed)
|
||||
@@ -84,4 +84,8 @@ final class CloseablesManager implements Closeable {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
||||
boolean isClosed() {
|
||||
return isClosed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user