From 1a31521dd4e1f7ef96c9d82d69b3d7aa42282eeb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 4 Mar 2017 07:31:18 +0300 Subject: cleanup deprecation warnings --- juick-server/src/main/java/com/juick/database/MySqlUpdater.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-server/src/main/java/com/juick/database/MySqlUpdater.java') diff --git a/juick-server/src/main/java/com/juick/database/MySqlUpdater.java b/juick-server/src/main/java/com/juick/database/MySqlUpdater.java index c087ee29..2027d9f1 100644 --- a/juick-server/src/main/java/com/juick/database/MySqlUpdater.java +++ b/juick-server/src/main/java/com/juick/database/MySqlUpdater.java @@ -36,9 +36,9 @@ public class MySqlUpdater { public MySqlUpdater(JdbcTemplate jdbcTemplate, PlatformTransactionManager transactionManager, String updateSqlResource) { - Assert.notNull(jdbcTemplate); - Assert.notNull(transactionManager); - Assert.notNull(updateSqlResource); + Assert.notNull(jdbcTemplate, "JdbcTemplate must be initialized"); + Assert.notNull(transactionManager, "PlatformTransactionManager must be initialized"); + Assert.notNull(updateSqlResource, "sqlResource must be initialized"); this.jdbcTemplate = jdbcTemplate; this.transactionTemplate = new TransactionTemplate(transactionManager); -- cgit v1.2.3