Author: sebb
Date: Thu Jan 30 17:15:17 2014
New Revision: 1562897

URL: http://svn.apache.org/r1562897
Log:
Rename to avoid variable hiding

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

Modified: 
commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestDelegatingStatement.java
URL: 
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestDelegatingStatement.java?rev=1562897&r1=1562896&r2=1562897&view=diff
==============================================================================
--- 
commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestDelegatingStatement.java
 (original)
+++ 
commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestDelegatingStatement.java
 Thu Jan 30 17:15:17 2014
@@ -113,18 +113,18 @@ public class TestDelegatingStatement ext
     public void testIsWrapperFor() throws Exception {
         TesterConnection tstConn = new TesterConnection("test", "test");
         TesterStatement tstStmt = new TesterStatementNonWrapping(tstConn);
-        DelegatingConnection<TesterConnection> conn = new 
DelegatingConnection<>(tstConn);
-        DelegatingStatement stmt = new DelegatingStatement(conn, tstStmt);
+        DelegatingConnection<TesterConnection> dconn = new 
DelegatingConnection<>(tstConn);
+        DelegatingStatement stamt = new DelegatingStatement(dconn, tstStmt);
 
         Class<?> stmtProxyClass = Proxy.getProxyClass(
                 this.getClass().getClassLoader(), 
                 Statement.class);
         
-        assertTrue(stmt.isWrapperFor(DelegatingStatement.class));
-        assertTrue(stmt.isWrapperFor(TesterStatement.class));
-        assertFalse(stmt.isWrapperFor(stmtProxyClass));
+        assertTrue(stamt.isWrapperFor(DelegatingStatement.class));
+        assertTrue(stamt.isWrapperFor(TesterStatement.class));
+        assertFalse(stamt.isWrapperFor(stmtProxyClass));
         
-        stmt.close();
+        stamt.close();
     }
     
     private static class TesterStatementNonWrapping extends TesterStatement {


Reply via email to