Add tests to check returning null to pool

This commit is contained in:
Jonathan Leibiusky
2014-03-12 10:31:22 -04:00
parent f35567cc9f
commit 62b98a3e63
2 changed files with 13 additions and 0 deletions

View File

@@ -45,6 +45,9 @@ public abstract class Pool<T> {
}
public void returnResourceObject(final T resource) {
if (resource == null) {
return;
}
try {
internalPool.returnObject(resource);
} catch (Exception e) {