mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
optimize for oracle
This commit is contained in:
@@ -35,6 +35,10 @@ public class PoolableWrapper implements Wrapper {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (iface.isInstance(wrapper)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (iface.isInstance(this)) {
|
||||
return true;
|
||||
}
|
||||
@@ -49,6 +53,10 @@ public class PoolableWrapper implements Wrapper {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (iface.isInstance(wrapper)) {
|
||||
return (T) wrapper;
|
||||
}
|
||||
|
||||
if (iface.isInstance(this)) {
|
||||
return (T) this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user