mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve java.sql.Wrapper support
This commit is contained in:
@@ -54,7 +54,7 @@ public abstract class WrapperProxyImpl implements WrapperProxy {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (iface.isInstance(this)) {
|
||||
if (iface == this.getClass()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -67,8 +67,8 @@ public abstract class WrapperProxyImpl implements WrapperProxy {
|
||||
if (iface == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (iface.isInstance(this)) {
|
||||
|
||||
if (iface == this.getClass()) {
|
||||
return (T) this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user