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 --- .../main/java/com/juick/service/search/SphinxSearchServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-server/src/main/java/com/juick/service/search') diff --git a/juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java b/juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java index 161e0fb2..aa903545 100644 --- a/juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java +++ b/juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java @@ -27,12 +27,12 @@ public class SphinxSearchServiceImpl implements SearchService { public SphinxSearchServiceImpl(JdbcTemplate searchJdbcTemplate) { - Assert.notNull(searchJdbcTemplate); + Assert.notNull(searchJdbcTemplate, "JdbcTemplate must be initialized"); this.namedParameterSearchJdbcTemplate = new NamedParameterJdbcTemplate(searchJdbcTemplate); } public SphinxSearchServiceImpl(DataSource searchDataSource) { - Assert.notNull(searchDataSource); + Assert.notNull(searchDataSource, "DataSource must be initialized"); this.namedParameterSearchJdbcTemplate = new NamedParameterJdbcTemplate(searchDataSource); } -- cgit v1.2.3