This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-pool.git
commit 4e79ffa64d4f0d023b2f4737eb5716d1c3d3a884 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 28 16:19:58 2021 -0400 PMD: document empty block. --- .../commons/pool2/impl/AtomicIntegerFactory.java | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/apache/commons/pool2/impl/AtomicIntegerFactory.java b/src/test/java/org/apache/commons/pool2/impl/AtomicIntegerFactory.java index 5f7b7a5..e2e68ef 100644 --- a/src/test/java/org/apache/commons/pool2/impl/AtomicIntegerFactory.java +++ b/src/test/java/org/apache/commons/pool2/impl/AtomicIntegerFactory.java @@ -42,14 +42,18 @@ public class AtomicIntegerFactory p.getObject().incrementAndGet(); try { Thread.sleep(activateLatency); - } catch (final InterruptedException ex) {} + } catch (final InterruptedException ex) { + // ignore + } } @Override public AtomicInteger create() { try { Thread.sleep(createLatency); - } catch (final InterruptedException ex) {} + } catch (final InterruptedException ex) { + // ignore + } return new AtomicInteger(0); } @@ -57,7 +61,9 @@ public class AtomicIntegerFactory public void destroyObject(final PooledObject<AtomicInteger> p) { try { Thread.sleep(destroyLatency); - } catch (final InterruptedException ex) {} + } catch (final InterruptedException ex) { + // ignore + } } @Override @@ -65,7 +71,9 @@ public class AtomicIntegerFactory p.getObject().decrementAndGet(); try { Thread.sleep(passivateLatency); - } catch (final InterruptedException ex) {} + } catch (final InterruptedException ex) { + // ignore + } } /** @@ -111,7 +119,9 @@ public class AtomicIntegerFactory public boolean validateObject(final PooledObject<AtomicInteger> instance) { try { Thread.sleep(validateLatency); - } catch (final InterruptedException ex) {} + } catch (final InterruptedException ex) { + // ignore + } return instance.getObject().intValue() == 1; }