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-ws/src/main/java/com/juick/ws/XMPPConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-ws/src/main/java/com/juick/ws') diff --git a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java index 7a01c501..bd801dd6 100644 --- a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java +++ b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java @@ -52,8 +52,8 @@ public class XMPPConnection implements AutoCloseable { public XMPPConnection( final Environment env, final WebsocketComponent wsHandler) { - Assert.notNull(env); - Assert.notNull(wsHandler); + Assert.notNull(env, "Environment must be initialized"); + Assert.notNull(wsHandler, "WebsocketComponent must be initialized"); this.wsHandler = wsHandler; -- cgit v1.2.3