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 a604ec2895fe37cbc67b2e330e8009dca4b5097d Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Feb 15 18:01:22 2021 -0500 Sort members. --- src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java b/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java index 90b5039..6ba43b5 100644 --- a/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java +++ b/src/main/java/org/apache/commons/pool2/impl/PoolImplUtils.java @@ -158,6 +158,10 @@ class PoolImplUtils { return null; } + static boolean isPositive(final Duration delay) { + return !delay.isNegative() && !delay.isZero(); + } + /** * Converts a {@link TimeUnit} to a {@link ChronoUnit}. * @@ -196,8 +200,4 @@ class PoolImplUtils { static Duration toDuration(long amount, TimeUnit timeUnit) { return Duration.of(amount, PoolImplUtils.toChronoUnit(timeUnit)); } - - static boolean isPositive(final Duration delay) { - return !delay.isNegative() && !delay.isZero(); - } }