@Test public void closes_at_some_point() throws Exception { ref = null; for (int i = 0; i < 10; ++i) { System.gc(); try { closed_.get(1, TimeUnit.SECONDS); } catch (TimeoutException ex) { } } assertTrue(closed_.isDone()); }
public T get() { return value_; }
GCCloseable { public T get() { return value_; } }
GCCloseable { public T get() { return value_; } GCCloseable();  GCCloseable(T value); }
GCCloseable { public T get() { return value_; } GCCloseable();  GCCloseable(T value); T get(); }
GCCloseable { public T get() { return value_; } GCCloseable();  GCCloseable(T value); T get();  }