commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r895709 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestManual.java
Date Mon, 04 Jan 2010 17:16:35 GMT
Author: sebb
Date: Mon Jan  4 17:16:34 2010
New Revision: 895709

URL: http://svn.apache.org/viewvc?rev=895709&view=rev
Log:
Avoid Eclipse warning re data hiding

Modified:
    commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestManual.java

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestManual.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestManual.java?rev=895709&r1=895708&r2=895709&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestManual.java (original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestManual.java Mon Jan  4
17:16:34 2010
@@ -83,8 +83,8 @@
         GenericObjectPool connectionPool = new GenericObjectPool(null);
         ConnectionFactory connectionFactory = new DriverManagerConnectionFactory("jdbc:some:connect:string","username","password");
         new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
-        PoolingDriver driver = new PoolingDriver();
-        driver.registerPool("example",connectionPool);
+        PoolingDriver driver2 = new PoolingDriver();
+        driver2.registerPool("example",connectionPool);
     }
 
 
@@ -129,8 +129,8 @@
                 false,
                 true);
         assertNotNull(poolableConnectionFactory);
-        PoolingDriver driver = new PoolingDriver();
-        driver.registerPool("neusoftim",connectionPool);
+        PoolingDriver driver2 = new PoolingDriver();
+        driver2.registerPool("neusoftim",connectionPool);
         Connection[] conn = new Connection[25];
         for(int i=0;i<25;i++) {
             conn[i] = DriverManager.getConnection("jdbc:apache:commons:dbcp:neusoftim");
@@ -149,8 +149,8 @@
         assertNotNull(conn);
         conn.close();
         
-        PoolingDriver driver = (PoolingDriver) DriverManager.getDriver("jdbc:apache:commons:dbcp:");
-        driver.closePool("test");
+        PoolingDriver driver2 = (PoolingDriver) DriverManager.getDriver("jdbc:apache:commons:dbcp:");
+        driver2.closePool("test");
 
         try {
             DriverManager.getConnection("jdbc:apache:commons:dbcp:test");
@@ -169,8 +169,8 @@
         assertEquals(1, pool.getNumActive());
         assertEquals(0, pool.getNumIdle());
 
-        PoolingDriver driver = (PoolingDriver) DriverManager.getDriver("jdbc:apache:commons:dbcp:");
-        driver.invalidateConnection(conn);
+        PoolingDriver driver2 = (PoolingDriver) DriverManager.getDriver("jdbc:apache:commons:dbcp:");
+        driver2.invalidateConnection(conn);
 
         assertEquals(0, pool.getNumActive());
         assertEquals(0, pool.getNumIdle());



Mime
View raw message