You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2013/10/17 11:22:21 UTC
svn commit: r1533017 -
/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java
Author: markt
Date: Thu Oct 17 09:22:20 2013
New Revision: 1533017
URL: http://svn.apache.org/r1533017
Log:
Fix Javadoc warnings by deleting Javadoc :)
Allow the methods to inherit the Javadoc from the interface (it had been copied and pasted to/from there anyway).
Modified:
commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java
Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java?rev=1533017&r1=1533016&r2=1533017&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java (original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/DefaultPooledObject.java Thu Oct 17 09:22:20 2013
@@ -53,29 +53,16 @@ public class DefaultPooledObject<T> impl
this.object = object;
}
- /**
- * Obtain the underlying object that is wrapped by this instance of
- * {@link PooledObject}.
- */
@Override
public T getObject() {
return object;
}
- /**
- * Obtain the time (using the same basis as
- * {@link System#currentTimeMillis()}) that this object was created.
- */
@Override
public long getCreateTime() {
return createTime;
}
- /**
- * Obtain the time in milliseconds that this object last spent in the the
- * active state (it may still be active in which case subsequent calls will
- * return an increased value).
- */
@Override
public long getActiveTimeMillis() {
// Take copies to avoid threading issues
@@ -89,11 +76,6 @@ public class DefaultPooledObject<T> impl
}
}
- /**
- * Obtain the time in milliseconds that this object last spend in the the
- * idle state (it may still be idle in which case subsequent calls will
- * return an increased value).
- */
@Override
public long getIdleTimeMillis() {
return System.currentTimeMillis() - lastReturnTime;
@@ -127,13 +109,6 @@ public class DefaultPooledObject<T> impl
}
}
- /**
- * Orders instances based on idle time - i.e. the length of time since the
- * instance was returned to the pool. Used by the GKOP idle object evictor.
- * <p>
- * Note: This class has a natural ordering that is inconsistent with
- * equals if distinct objects have the same identity hash code.
- */
@Override
public int compareTo(PooledObject<T> other) {
final long lastActiveDiff =
@@ -149,11 +124,6 @@ public class DefaultPooledObject<T> impl
return (int)Math.min(Math.max(lastActiveDiff, Integer.MIN_VALUE), Integer.MAX_VALUE);
}
-
- /**
- * Provides a String form of the wrapper for debug purposes. The format is
- * not fixed and may change at any time.
- */
@Override
public String toString() {
StringBuilder result = new StringBuilder();