Skip to content

Commit 72f201d

Browse files
authored
Clean up blank lines in testCollectDetailedStatisticsEnabled
Removed unnecessary blank lines in test method.
1 parent 6a6fbb2 commit 72f201d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/test/java/org/apache/commons/pool3/impl/TestBaseGenericObjectPool.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,13 @@ void testCollectDetailedStatisticsDisabled() throws Exception {
196196
void testCollectDetailedStatisticsEnabled() throws Exception {
197197
// Ensure detailed statistics are enabled (default)
198198
pool.setCollectDetailedStatistics(true);
199-
200199
final DefaultPooledObject<String> pooledObject = (DefaultPooledObject<String>) factory.makeObject();
201-
202200
// Update statistics
203201
pool.updateStatsBorrow(pooledObject, Duration.ofMillis(100));
204202
pool.updateStatsReturn(Duration.ofMillis(200));
205-
206203
// All counters should work
207204
assertEquals(1, pool.getBorrowedCount());
208205
assertEquals(1, pool.getReturnedCount());
209-
210206
// Detailed statistics should be updated
211207
assertEquals(200, pool.getMeanActiveTimeMillis());
212208
assertEquals(100, pool.getMeanBorrowWaitTimeMillis());
@@ -279,7 +275,6 @@ void testStatsStoreConcurrentAccess() throws Exception {
279275
assertTrue(pool.getMeanActiveTimeMillis() >= 0);
280276
assertTrue(pool.getMeanBorrowWaitTimeMillis() >= 0);
281277
assertTrue(pool.getMaxBorrowWaitTimeMillis() >= 0);
282-
283278
executor.shutdown();
284279
assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
285280
}

0 commit comments

Comments
 (0)