Small refactoring to utilize new method Options.isExplicitlyDisabled().

This commit is contained in:
Archie L. Cobbs 2025-06-10 14:32:42 -05:00
parent 2c4d228023
commit 16debaa4c3

View File

@ -171,7 +171,7 @@ public class Log extends AbstractLog {
lint.isEnabled(category) : // then emit if the category is enabled
category.annotationSuppression ? // else emit if the category is not suppressed, where
!lint.isSuppressed(category) : // ...suppression happens via @SuppressWarnings
!options.isSet(XLINT_CUSTOM, "-" + category.option); // ...suppression happens via -Xlint:-category
!options.isExplicitlyDisabled(Option.XLINT, category); // ...suppression happens via -Xlint:-category
if (!emit)
return;
}