mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
删除重复代码
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@377 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -40,6 +40,7 @@ import com.alibaba.druid.filter.Filter;
|
||||
import com.alibaba.druid.filter.FilterChainImpl;
|
||||
import com.alibaba.druid.proxy.jdbc.DataSourceProxy;
|
||||
import com.alibaba.druid.util.DruidLoaderUtils;
|
||||
import com.alibaba.druid.util.JdbcUtils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
@@ -649,7 +650,7 @@ public abstract class DruidAbstractDataSource implements DruidAbstractDataSource
|
||||
public void setExceptionSorterClassName(String exceptionSorter) throws Exception {
|
||||
this.setExceptionSoter(exceptionSorter);
|
||||
}
|
||||
|
||||
|
||||
public void setExceptionSoter(String exceptionSorter) throws Exception {
|
||||
if (exceptionSorter == null) {
|
||||
this.exceptionSoter = null;
|
||||
@@ -753,20 +754,8 @@ public abstract class DruidAbstractDataSource implements DruidAbstractDataSource
|
||||
return false;
|
||||
}
|
||||
} finally {
|
||||
if (rset != null) {
|
||||
try {
|
||||
rset.close();
|
||||
} catch (Exception t) {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
if (stmt != null) {
|
||||
try {
|
||||
stmt.close();
|
||||
} catch (Exception t) {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
JdbcUtils.close(rset);
|
||||
JdbcUtils.close(stmt);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -26,7 +26,7 @@ public class Case3 extends TestCase {
|
||||
private int threadCount = 40;
|
||||
private int TEST_COUNT = 3;
|
||||
final int LOOP_COUNT = 1000 * 100;
|
||||
private boolean testOnBorrow = false;
|
||||
private boolean testOnBorrow = true;
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
// jdbcUrl = "jdbc:fake:dragoon_v25masterdb";
|
||||
|
||||
Reference in New Issue
Block a user