Skip to content

Commit

Permalink
Also skip RemoveUnusedPrivateMethods when all suppressed
Browse files Browse the repository at this point in the history
Fixes #331
  • Loading branch information
timtebeek committed Aug 17, 2024
1 parent 38e0048 commit c9607c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ private boolean unusedWarningsSuppressed(J classDeclaration) {
List<Expression> 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;
}
}
Expand Down

0 comments on commit c9607c0

Please sign in to comment.