mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 changed closeables to a LinkedHashSet<Closeable>();
This commit is contained in:
@@ -21,15 +21,15 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
|
||||
final class CloseablesManager implements Closeable {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(CloseablesManager.class.getName());
|
||||
|
||||
private boolean isClosed = false;
|
||||
private final Set<Closeable> closeables = new HashSet<Closeable>();
|
||||
private final Set<Closeable> closeables = new LinkedHashSet<Closeable>();
|
||||
|
||||
private void checkState() {
|
||||
if (isClosed)
|
||||
|
||||
Reference in New Issue
Block a user