Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

polished the hsqldb.ServerBean

  • Loading branch information...
commit 0f197dc955d3bd22783547bbaafbd5e153a74bee 1 parent 3808791
@trisberg trisberg authored
View
11 kickstart/src/main/java/spring/kickstart/db/hsqldb/ServerBean.java
@@ -18,16 +18,12 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.hsqldb.ServerConfiguration;
-import org.hsqldb.ServerConstants;
import org.hsqldb.DatabaseManager;
+import org.hsqldb.ServerConfiguration;
import org.hsqldb.persist.HsqlProperties;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
-import javax.sql.DataSource;
-import java.sql.Connection;
-import java.sql.SQLException;
import java.util.Properties;
/**
@@ -80,10 +76,7 @@ public void setServerProperties(Properties serverProperties) {
}
public void afterPropertiesSet() throws Exception {
- HsqlProperties configProps = new HsqlProperties(serverProperties);
- if (configProps == null) {
- configProps = new HsqlProperties();
- }
+ HsqlProperties configProps = serverProperties != null ? new HsqlProperties(serverProperties) : new HsqlProperties();
ServerConfiguration.translateDefaultDatabaseProperty(configProps);
Please sign in to comment.
Something went wrong with that request. Please try again.