aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/BaseJdbcService.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-03-04 07:31:18 +0300
committerGravatar Vitaly Takmazov2017-03-04 07:31:18 +0300
commit1a31521dd4e1f7ef96c9d82d69b3d7aa42282eeb (patch)
tree69d935e3ca7036a8df769cbdf94f9decf65d1b62 /juick-server/src/main/java/com/juick/service/BaseJdbcService.java
parentc2d7eadf75c27854f8ad12a6dfce82fa900b0f3e (diff)
cleanup deprecation warnings
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/BaseJdbcService.java')
-rw-r--r--juick-server/src/main/java/com/juick/service/BaseJdbcService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/service/BaseJdbcService.java b/juick-server/src/main/java/com/juick/service/BaseJdbcService.java
index fe544efe..e3784345 100644
--- a/juick-server/src/main/java/com/juick/service/BaseJdbcService.java
+++ b/juick-server/src/main/java/com/juick/service/BaseJdbcService.java
@@ -22,7 +22,7 @@ public abstract class BaseJdbcService {
protected BaseJdbcService(JdbcTemplate jdbcTemplate, PlatformTransactionManager transactionManager) {
- Assert.notNull(jdbcTemplate);
+ Assert.notNull(jdbcTemplate, "JdbcTemplate must be initialized");
this.jdbcTemplate = jdbcTemplate;
this.namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(jdbcTemplate);
@@ -32,7 +32,7 @@ public abstract class BaseJdbcService {
}
protected BaseJdbcService(DataSource dataSource, PlatformTransactionManager transactionManager) {
- Assert.notNull(dataSource);
+ Assert.notNull(dataSource, "DataSource must be initialized");
this.jdbcTemplate = new JdbcTemplate(dataSource);
this.namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(jdbcTemplate);