tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1340861 - /tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/PoolPurgeTest.java
Date Sun, 20 May 2012 22:33:43 GMT
Author: kkolinko
Date: Sun May 20 22:33:42 2012
New Revision: 1340861

URL: http://svn.apache.org/viewvc?rev=1340861&view=rev
Log:
Fix unused imports to make checkstyle happy.

Modified:
    tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/PoolPurgeTest.java

Modified: tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/PoolPurgeTest.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/PoolPurgeTest.java?rev=1340861&r1=1340860&r2=1340861&view=diff
==============================================================================
--- tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/PoolPurgeTest.java
(original)
+++ tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/PoolPurgeTest.java
Sun May 20 22:33:42 2012
@@ -17,15 +17,7 @@
 package org.apache.tomcat.jdbc.test;
 
 import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.Statement;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
 
-import javax.sql.DataSource;
-
-import org.apache.tomcat.jdbc.pool.DataSourceProxy;
 import org.apache.tomcat.jdbc.test.driver.Driver;
 
 /**
@@ -75,7 +67,7 @@ public class PoolPurgeTest extends Defau
 
     public void testPoolPurgeWithActive() throws Exception {
         init();
-        java.sql.Connection con = datasource.getConnection();
+        Connection con = datasource.getConnection();
         assertEquals("Nr of connections should be "+expectedSize, expectedSize , datasource.getSize());
         this.datasource.purge();
         assertEquals("Nr of connections should be "+(expectedSize-1), (expectedSize-1) ,
datasource.getSize());
@@ -86,7 +78,7 @@ public class PoolPurgeTest extends Defau
 
     public void testPoolPurgeOnReturn() throws Exception {
         init();
-        java.sql.Connection con = datasource.getConnection();
+        Connection con = datasource.getConnection();
         assertEquals("Nr of connections should be "+expectedSize, expectedSize , datasource.getSize());
         this.datasource.purgeOnReturn();
         assertEquals("Nr of connections should be "+expectedSize, expectedSize , datasource.getSize());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message