diff --git a/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/message/ThrowableConsumingMessageFactoryTest.java b/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/message/ThrowableConsumingMessageFactoryTest.java index 2faca8ac5f0..6c1b11a561a 100644 --- a/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/message/ThrowableConsumingMessageFactoryTest.java +++ b/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/message/ThrowableConsumingMessageFactoryTest.java @@ -36,7 +36,7 @@ class ThrowableConsumingMessageFactoryTest { private static final Object P8 = new Object(); private static final Object P9 = new Object(); private static final Object P10 = new Object(); - private static final Object THROWABLE = new Throwable(); + private static final Throwable THROWABLE = new Throwable(); @Test void should_not_consume_last_object_parameter() { diff --git a/log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/message/ThrowableConsumingMessageFactoryTest.java b/log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/message/ThrowableConsumingMessageFactoryTest.java index 2faca8ac5f0..6c1b11a561a 100644 --- a/log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/message/ThrowableConsumingMessageFactoryTest.java +++ b/log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/message/ThrowableConsumingMessageFactoryTest.java @@ -36,7 +36,7 @@ class ThrowableConsumingMessageFactoryTest { private static final Object P8 = new Object(); private static final Object P9 = new Object(); private static final Object P10 = new Object(); - private static final Object THROWABLE = new Throwable(); + private static final Throwable THROWABLE = new Throwable(); @Test void should_not_consume_last_object_parameter() {