HCOLL-167 changed closeables to a LinkedHashSet<Closeable>();

This commit is contained in:
Rob Austin
2014-10-22 12:20:23 +01:00
parent ea94303b27
commit 7b3b794be8
2 changed files with 823 additions and 2 deletions
@@ -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)