This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch POOL_2_X
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/POOL_2_X by this push:
new 1737a81f Sort members
1737a81f is described below
commit 1737a81fc1516f62872006b8984b5903e55b10cf
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jan 20 23:23:59 2026 +0000
Sort members
---
.../pool2/impl/DefaultPooledObjectInfo.java | 26 +++++++++++-----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git
a/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObjectInfo.java
b/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObjectInfo.java
index 964437e2..4034148b 100644
--- a/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObjectInfo.java
+++ b/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObjectInfo.java
@@ -87,19 +87,6 @@ public class DefaultPooledObjectInfo implements
DefaultPooledObjectInfoMBean {
return getTimeMillisFormatted(getLastReturnTime());
}
- /**
- * Gets the pooled object for debugging, use at your own risk, changing
the state of this object may have unintended consequences for the pool.
- * <p>
- * This can't be a traditional getter as that would expose the pooled
object via JMX.
- * </p>
- *
- * @return the pooled object for debugging, use at your own risk, changing
the state of this object may have unintended consequences for the pool.
- * @since 2.14.0
- */
- public PooledObject<?> pooledObject() {
- return pooledObject;
- }
-
@Override
public String getPooledObjectToString() {
return Objects.toString(pooledObject.getObject(), null);
@@ -115,6 +102,19 @@ public class DefaultPooledObjectInfo implements
DefaultPooledObjectInfoMBean {
return new SimpleDateFormat(PATTERN).format(Long.valueOf(millis));
}
+ /**
+ * Gets the pooled object for debugging, use at your own risk, changing
the state of this object may have unintended consequences for the pool.
+ * <p>
+ * This can't be a traditional getter as that would expose the pooled
object via JMX.
+ * </p>
+ *
+ * @return the pooled object for debugging, use at your own risk, changing
the state of this object may have unintended consequences for the pool.
+ * @since 2.14.0
+ */
+ public PooledObject<?> pooledObject() {
+ return pooledObject;
+ }
+
/**
* @since 2.4.3