mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for issue #1539
This commit is contained in:
@@ -1018,6 +1018,10 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
if (StringUtils.equals(this.jdbcUrl, jdbcUrl)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (inited) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
@@ -1082,6 +1086,10 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
}
|
||||
|
||||
public void setUrl(String jdbcUrl) {
|
||||
if (StringUtils.equals(this.jdbcUrl, jdbcUrl)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (inited) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user