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@321 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
+6
-6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user