commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [33/50] [abbrv] commons-dbcp git commit: Better description of time scale.
Date Wed, 13 Jun 2018 17:28:55 GMT
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/18e6a973
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbcp/tree/18e6a973
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbcp/diff/18e6a973

Branch: refs/heads/release
Commit: 18e6a973234edce2e46a5c4fd99ab890e8594b31
Parents: 8856608
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Mon Jun 11 18:47:23 2018 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Mon Jun 11 18:47:23 2018 -0600

----------------------------------------------------------------------
 src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbcp/blob/18e6a973/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 56ed7e9..48101f2 100644
--- a/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
+++ b/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
@@ -38,7 +38,7 @@ public class AbandonedTrace implements TrackedUse {
     private final List<WeakReference<AbandonedTrace>> traceList = new ArrayList<>();
 
     /** Last time this connection was used */
-    private volatile long lastUsed = 0;
+    private volatile long lastUsedMillis = 0;
 
     /**
      * Create a new AbandonedTrace without config and without doing abandoned tracing.
@@ -74,14 +74,14 @@ public class AbandonedTrace implements TrackedUse {
      */
     @Override
     public long getLastUsed() {
-        return lastUsed;
+        return lastUsedMillis;
     }
 
     /**
      * Sets the time this object was last used to the current time in milliseconds.
      */
     protected void setLastUsed() {
-        lastUsed = System.currentTimeMillis();
+        lastUsedMillis = System.currentTimeMillis();
     }
 
     /**
@@ -91,7 +91,7 @@ public class AbandonedTrace implements TrackedUse {
      *            time in milliseconds
      */
     protected void setLastUsed(final long lastUsedMillis) {
-        lastUsed = lastUsedMillis;
+        this.lastUsedMillis = lastUsedMillis;
     }
 
     /**


Mime
View raw message