clear warnings

This commit is contained in:
温少
2012-01-15 04:53:25 +08:00
parent 0b9c2e7084
commit d05f9d3e96
7 changed files with 1519 additions and 15 deletions
@@ -741,10 +741,10 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
}
public String getName() {
if (name == null) {
return "DataSource-" + System.identityHashCode(this);
if (name != null) {
return name;
}
return name;
return "DataSource-" + System.identityHashCode(this);
}
public String getNameInternal() {
@@ -955,20 +955,20 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
public void setDriver(Driver driver) {
this.driver = driver;
}
public int getDriverMajorVersion() {
if (this.driver == null) {
return -1;
}
return this.driver.getMajorVersion();
}
public int getDriverMinorVersion() {
if (this.driver == null) {
return -1;
}
return this.driver.getMinorVersion();
}