You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2018/06/12 00:46:42 UTC
commons-dbcp git commit: Better description of time scale.
Repository: commons-dbcp
Updated Branches:
refs/heads/master 91dc9948f -> 8856608a0
Better description of time scale.
Project: http://git-wip-us.apache.org/repos/asf/commons-dbcp/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbcp/commit/8856608a
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/8856608a
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/8856608a
Branch: refs/heads/master
Commit: 8856608a047f389a40f6d1f409983de139b35850
Parents: 91dc994
Author: Gary Gregory <ga...@gmail.com>
Authored: Mon Jun 11 18:46:38 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Mon Jun 11 18:46:38 2018 -0600
----------------------------------------------------------------------
.../org/apache/commons/dbcp2/AbandonedTrace.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/8856608a/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java b/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
index a53b360..56ed7e9 100644
--- a/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
+++ b/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
@@ -68,9 +68,9 @@ public class AbandonedTrace implements TrackedUse {
}
/**
- * Gets the last time this object was used in ms.
+ * Gets the last time this object was used in milliseconds.
*
- * @return long time in ms
+ * @return long time in milliseconds
*/
@Override
public long getLastUsed() {
@@ -78,20 +78,20 @@ public class AbandonedTrace implements TrackedUse {
}
/**
- * Sets the time this object was last used to the current time in ms.
+ * Sets the time this object was last used to the current time in milliseconds.
*/
protected void setLastUsed() {
lastUsed = System.currentTimeMillis();
}
/**
- * Sets the time in ms this object was last used.
+ * Sets the time in milliseconds this object was last used.
*
- * @param time
- * time in ms
+ * @param lastUsedMillis
+ * time in milliseconds
*/
- protected void setLastUsed(final long time) {
- lastUsed = time;
+ protected void setLastUsed(final long lastUsedMillis) {
+ lastUsed = lastUsedMillis;
}
/**