HCOLL-167 improved the StatelessChronicleMapTest

This commit is contained in:
Rob Austin
2014-10-21 20:47:50 +01:00
parent 8b897f0a52
commit c83030bc40
2 changed files with 362 additions and 249 deletions
@@ -1,6 +1,5 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.common.ClosableHolder;
import net.openhft.chronicle.common.StatelessBuilder;
import net.openhft.chronicle.common.exceptions.IORuntimeException;
import net.openhft.chronicle.common.exceptions.TimeoutRuntimeException;
@@ -23,7 +22,7 @@ import static net.openhft.chronicle.map.StatelessChronicleMap.EventId.*;
/**
* @author Rob Austin.
*/
class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, ClosableHolder {
class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable {
private static final Logger LOG = LoggerFactory.getLogger(StatelessChronicleMap.class);
@@ -145,7 +144,7 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clos
}
public void addCloseable(final Closeable closeable) {
private void addCloseable(final Closeable closeable) {
try {
closeables.add(closeable);
} catch (IllegalStateException e) {