@Test public void initialValueShouldCreateEmptyMap() { Map<String, String> map = new ThreadLocalMap<String, String>().initialValue(); assertThat(map, is(instanceOf(Map.class))); assertThat(map.size(), is(0)); }
@Override protected final Map<K, V> initialValue() { return new HashMap<>(); }
ThreadLocalMap extends InheritableThreadLocal<Map<K, V>> { @Override protected final Map<K, V> initialValue() { return new HashMap<>(); } }
ThreadLocalMap extends InheritableThreadLocal<Map<K, V>> { @Override protected final Map<K, V> initialValue() { return new HashMap<>(); }  }
ThreadLocalMap extends InheritableThreadLocal<Map<K, V>> { @Override protected final Map<K, V> initialValue() { return new HashMap<>(); }   }
ThreadLocalMap extends InheritableThreadLocal<Map<K, V>> { @Override protected final Map<K, V> initialValue() { return new HashMap<>(); }    }