@Override public final P get(K key) { P pool = map.get(checkNotNull(key, "key")); if (pool == null) { pool = newPool(key); P old = map.putIfAbsent(key, pool); if (old != null) { // We need to destroy the newly created pool as we not use it. pool.close(); pool = old; } } return pool; } /**
@Override public final P get(K key) { P pool = map.get(checkNotNull(key, "key")); if (pool == null) { pool = newPool(key); P old = map.putIfAbsent(key, pool); if (old != null) { // We need to destroy the newly created pool as we not use it. pool.close(); pool = old; } } return pool; } /**
@Override public final P get(K key) { P pool = map.get(checkNotNull(key, "key")); if (pool == null) { pool = newPool(key); P old = map.putIfAbsent(key, pool); if (old != null) { // We need to destroy the newly created pool as we not use it. pool.close(); pool = old; } } return pool; } /**
@Override public final P get(K key) { P pool = map.get(checkNotNull(key, "key")); if (pool == null) { pool = newPool(key); P old = map.putIfAbsent(key, pool); if (old != null) { // We need to destroy the newly created pool as we not use it. pool.close(); pool = old; } } return pool; } /**
@Override public final P get(K key) { P pool = map.get(checkNotNull(key, "key")); if (pool == null) { pool = newPool(key); P old = map.putIfAbsent(key, pool); if (old != null) { // We need to destroy the newly created pool as we not use it. pool.close(); pool = old; } } return pool; } /**
@Override public final P get(K key) { P pool = map.get(checkNotNull(key, "key")); if (pool == null) { pool = newPool(key); P old = map.putIfAbsent(key, pool); if (old != null) { // We need to destroy the newly created pool as we not use it. pool.close(); pool = old; } } return pool; } /**