commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1765924 - /commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java
Date Fri, 21 Oct 2016 06:12:33 GMT
Author: ggregory
Date: Fri Oct 21 06:12:33 2016
New Revision: 1765924

URL: http://svn.apache.org/viewvc?rev=1765924&view=rev
Log:
Format: add a blank line between methods.

Modified:
    commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java

Modified: commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java?rev=1765924&r1=1765923&r2=1765924&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java
(original)
+++ commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/VisitTrackerFactory.java
Fri Oct 21 06:12:33 2016
@@ -22,56 +22,67 @@ import org.apache.commons.pool2.PooledOb
 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