From 4bf5c0c714d2151c04d9c10e426581f1b2749751 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 22 Feb 2018 09:31:24 +0100 Subject: [PATCH] Suppress 'unsused' warning in SpoilerTest --- .../test/java/org/jivesoftware/smackx/spoiler/SpoilerTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smack-experimental/src/test/java/org/jivesoftware/smackx/spoiler/SpoilerTest.java b/smack-experimental/src/test/java/org/jivesoftware/smackx/spoiler/SpoilerTest.java index d1a77cff3..d20ad6082 100644 --- a/smack-experimental/src/test/java/org/jivesoftware/smackx/spoiler/SpoilerTest.java +++ b/smack-experimental/src/test/java/org/jivesoftware/smackx/spoiler/SpoilerTest.java @@ -116,11 +116,13 @@ public class SpoilerTest extends SmackTestSuite { @Test(expected = IllegalArgumentException.class) public void spoilerCheckArgumentsNullTest() { + @SuppressWarnings("unused") SpoilerElement spoilerElement = new SpoilerElement("de", null); } @Test(expected = IllegalArgumentException.class) public void spoilerCheckArgumentsEmptyTest() { + @SuppressWarnings("unused") SpoilerElement spoilerElement = new SpoilerElement("de", ""); } }