diff --git a/src/main/java/org/openrewrite/staticanalysis/RemoveUnusedPrivateMethods.java b/src/main/java/org/openrewrite/staticanalysis/RemoveUnusedPrivateMethods.java index 4b2da88f4..fb7325b86 100644 --- a/src/main/java/org/openrewrite/staticanalysis/RemoveUnusedPrivateMethods.java +++ b/src/main/java/org/openrewrite/staticanalysis/RemoveUnusedPrivateMethods.java @@ -69,7 +69,8 @@ private boolean unusedWarningsSuppressed(J classDeclaration) { List arguments = annotation.getArguments(); if (arguments != null) { for (Expression argument : arguments) { - if (J.Literal.isLiteralValue(argument, "unused")) { + if (J.Literal.isLiteralValue(argument, "all") || + J.Literal.isLiteralValue(argument, "unused")) { return true; } }