diff --git a/src/main/java/org/openrewrite/java/logging/slf4j/CompleteExceptionLogging.java b/src/main/java/org/openrewrite/java/logging/slf4j/CompleteExceptionLogging.java index b6e9a4e..625f886 100644 --- a/src/main/java/org/openrewrite/java/logging/slf4j/CompleteExceptionLogging.java +++ b/src/main/java/org/openrewrite/java/logging/slf4j/CompleteExceptionLogging.java @@ -134,7 +134,6 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation m, if (lastParameter instanceof J.MethodInvocation && (THROWABLE_GET_MESSAGE.matches(lastParameter) || THROWABLE_GET_LOCALIZED_MESSAGE.matches(lastParameter))) { - J.MethodInvocation getMessageCall = (J.MethodInvocation) lastParameter; Expression firstParameter = method.getArguments().get(0); if (isStringLiteral(firstParameter)) {