代码重构

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@321 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-29 10:46:22 +00:00
parent b84ebeaf03
commit 895c587f93
@@ -55,13 +55,13 @@ public class OracleValidConnectionChecker implements ValidConnectionChecker, Ser
Connection conn = (Connection) c.unwrap(clazz);
if (conn != null) {
c = conn;
}
Integer status = (Integer) ping.invoke(c, params);
Integer status = (Integer) ping.invoke(c, params);
// Error
if (status.intValue() < 0) {
return false;
// Error
if (status.intValue() < 0) {
return false;
}
}
} catch (Exception e) {
LOG.warn("Unexpected error in pingDatabase", e);