From 1dd540b9c077deb69b6888b07d1311c4c5b206e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Mon, 23 Nov 2015 22:09:15 +0100 Subject: [PATCH] Fixed some redundant casts and definitions --- src/test/java/fr/xephi/authme/Log4JFilterTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/fr/xephi/authme/Log4JFilterTest.java b/src/test/java/fr/xephi/authme/Log4JFilterTest.java index 6fb6f058a..f8d185d34 100644 --- a/src/test/java/fr/xephi/authme/Log4JFilterTest.java +++ b/src/test/java/fr/xephi/authme/Log4JFilterTest.java @@ -97,7 +97,7 @@ public class Log4JFilterTest { @Test public void shouldFilterSensitiveStringMessage() { // given / when - Result result = log4JFilter.filter(null, null, null, SENSITIVE_COMMAND, new Object[0]); + Result result = log4JFilter.filter(null, null, null, SENSITIVE_COMMAND); // then assertThat(result, equalTo(Result.DENY)); @@ -106,7 +106,7 @@ public class Log4JFilterTest { @Test public void shouldNotFilterNormalStringMessage() { // given / when - Result result = log4JFilter.filter(null, null, null, NORMAL_COMMAND, new Object[0]); + Result result = log4JFilter.filter(null, null, null, NORMAL_COMMAND); // then assertThat(result, equalTo(Result.NEUTRAL)); @@ -115,7 +115,7 @@ public class Log4JFilterTest { @Test public void shouldNotFilterNonCommandStringMessage() { // given / when - Result result = log4JFilter.filter(null, null, null, OTHER_COMMAND, new Object[0]); + Result result = log4JFilter.filter(null, null, null, OTHER_COMMAND); // then assertThat(result, equalTo(Result.NEUTRAL)); @@ -124,7 +124,7 @@ public class Log4JFilterTest { @Test public void shouldReturnNeutralForNullMessage() { // given / when - Result result = log4JFilter.filter(null, null, null, null, new Object[0]); + Result result = log4JFilter.filter(null, null, null, null); // then assertThat(result, equalTo(Result.NEUTRAL)); @@ -211,7 +211,7 @@ public class Log4JFilterTest { @Test public void shouldNotFilterNullMessage() { // given / when - Result result = log4JFilter.filter(null, null, null, (Message) null, new Exception()); + Result result = log4JFilter.filter(null, null, null, null, new Exception()); // then assertThat(result, equalTo(Result.NEUTRAL));