LenientFormatStringValidation
The number of arguments provided to lenient format methods should match the positional specifiers.

Severity
ERROR

The problem

This check ensures that the number of arguments passed to ‘lenient’ formatting methods like Preconditions.checkArgument match the number of format specifiers.

WARNING: Only the exact two-character placeholder sequence %s is recognized by these methods. Any others will be ignored, and not used for argument substitution.

The APIs checked by this bugpattern include:

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("LenientFormatStringValidation") to the enclosing element.