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-crosspost/src/main/java/com/juick/components/Crosspost.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-crosspost/src/main') diff --git a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java index d7c0ec14..d2736d85 100644 --- a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java +++ b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java @@ -67,8 +67,8 @@ public class Crosspost extends TextWebSocketHandler { MessagesService messagesService; public Crosspost(final Environment env, final CrosspostService crosspostService) { - Assert.notNull(env); - Assert.notNull(crosspostService); + Assert.notNull(env, "Environment must be initialized"); + Assert.notNull(crosspostService, "CrosspostService must be initialized"); this.crosspostService = crosspostService; -- cgit v1.2.3