@Test public void testRemove() { final InternalThreadLocal<Integer> internalThreadLocal = new InternalThreadLocal<Integer>(); internalThreadLocal.set(1); Assert.assertTrue("get method false!", internalThreadLocal.get() == 1); internalThreadLocal.remove(); Assert.assertTrue("remove failed!", internalThreadLocal.get() == null); }
@SuppressWarnings("unchecked") public final void remove() { remove(InternalThreadLocalMap.getIfSet()); }
InternalThreadLocal { @SuppressWarnings("unchecked") public final void remove() { remove(InternalThreadLocalMap.getIfSet()); } }
InternalThreadLocal { @SuppressWarnings("unchecked") public final void remove() { remove(InternalThreadLocalMap.getIfSet()); } InternalThreadLocal(); }
InternalThreadLocal { @SuppressWarnings("unchecked") public final void remove() { remove(InternalThreadLocalMap.getIfSet()); } InternalThreadLocal(); @SuppressWarnings("unchecked") static void removeAll(); static int size(); static void destroy(); @SuppressWarnings("unchecked") final V get(); final void set(V value); @SuppressWarnings("unchecked") final void remove(); @SuppressWarnings("unchecked") final void remove(InternalThreadLocalMap threadLocalMap); }
InternalThreadLocal { @SuppressWarnings("unchecked") public final void remove() { remove(InternalThreadLocalMap.getIfSet()); } InternalThreadLocal(); @SuppressWarnings("unchecked") static void removeAll(); static int size(); static void destroy(); @SuppressWarnings("unchecked") final V get(); final void set(V value); @SuppressWarnings("unchecked") final void remove(); @SuppressWarnings("unchecked") final void remove(InternalThreadLocalMap threadLocalMap);  }