(E sample)
| 46 | final ConcurrentMap<E, E> map = new MapMaker().makeMap(); |
| 47 | return new Interner<E>() { |
| 48 | @Override |
| 49 | public E intern(E sample) { |
| 50 | E canonical = map.putIfAbsent(checkNotNull(sample), sample); |
| 51 | return (canonical == null) ? sample : canonical; |
| 52 | } |
| 53 | }; |
| 54 | } |
| 55 |
nothing calls this directly
no test coverage detected