Update ObjectPool.java

shorter code