commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject [37/50] [abbrv] commons-pool git commit: Format: add a blank line between methods.
Date Sun, 12 Mar 2017 19:48:07 GMT
Format: add a blank line between methods.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/pool/trunk@1765924 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/commons-pool/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-pool/commit/8cc1fa06
Tree: http://git-wip-us.apache.org/repos/asf/commons-pool/tree/8cc1fa06
Diff: http://git-wip-us.apache.org/repos/asf/commons-pool/diff/8cc1fa06

Branch: refs/heads/master
Commit: 8cc1fa06c74e9262e5b1e676abcede026559677b
Parents: bdab334
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Fri Oct 21 06:12:33 2016 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Fri Oct 21 06:12:33 2016 +0000

----------------------------------------------------------------------
 .../commons/pool2/VisitTrackerFactory.java       | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-pool/blob/8cc1fa06/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java b/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java
index f341dea..155613c 100644
--- a/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java
+++ b/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java
@@ -22,56 +22,67 @@ import org.apache.commons.pool2.PooledObjectFactory;
 import org.apache.commons.pool2.impl.DefaultPooledObject;
 
 /**
- * Factory that creates VisitTracker instances. Used to
- * test Evictor runs.
+ * Factory that creates VisitTracker instances. Used to test Evictor runs.
  *
  */
-public class VisitTrackerFactory<K> implements PooledObjectFactory<VisitTracker<K>>,
-    KeyedPooledObjectFactory<K,VisitTracker<K>> {
+public class VisitTrackerFactory<K>
+        implements PooledObjectFactory<VisitTracker<K>>, KeyedPooledObjectFactory<K,
VisitTracker<K>> {
     private int nextId = 0;
+
     public VisitTrackerFactory() {
         super();
     }
+
     @Override
     public PooledObject<VisitTracker<K>> makeObject() {
         return new DefaultPooledObject<VisitTracker<K>>(new VisitTracker<K>(nextId++));
     }
+
     @Override
     public PooledObject<VisitTracker<K>> makeObject(final K key) {
         return new DefaultPooledObject<VisitTracker<K>>(new VisitTracker<K>(nextId++,
key));
     }
+
     @Override
     public void destroyObject(final PooledObject<VisitTracker<K>> ref) {
         ref.getObject().destroy();
     }
+
     @Override
     public void destroyObject(final K key, final PooledObject<VisitTracker<K>>
ref) {
         ref.getObject().destroy();
     }
+
     @Override
     public boolean validateObject(final PooledObject<VisitTracker<K>> ref) {
         return ref.getObject().validate();
     }
+
     @Override
     public boolean validateObject(final K key, final PooledObject<VisitTracker<K>>
ref) {
         return ref.getObject().validate();
     }
+
     @Override
     public void activateObject(final PooledObject<VisitTracker<K>> ref) throws
Exception {
         ref.getObject().activate();
     }
+
     @Override
     public void activateObject(final K key, final PooledObject<VisitTracker<K>>
ref) throws Exception {
         ref.getObject().activate();
     }
+
     @Override
     public void passivateObject(final PooledObject<VisitTracker<K>> ref) throws
Exception {
         ref.getObject().passivate();
     }
+
     @Override
     public void passivateObject(final K key, final PooledObject<VisitTracker<K>>
ref) throws Exception {
         ref.getObject().passivate();
     }
+
     public void resetId() {
         nextId = 0;
     }


Mime
View raw message