GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Error Prone
  • Bug Patterns
  • Docs
  • GitHub

This view

  • Original page
  • New address

GeezerVison is showing errorprone.info — LenientFormatStringValidation

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:

  • com.google.common.base.Strings#lenientFormat
  • com.google.common.base.Preconditions#check*
  • com.google.common.base.Verify#verify*
  • com.google.common.truth.Truth#assertWithMessage
  • com.google.common.truth.Subject#check
  • com.google.common.truth.StandardSubjectBuilder#withMessage

Suppression

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

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.