File: PreconditionsInvalidPlaceholder.md

package info (click to toggle)
error-prone-java 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,076 kB
  • sloc: java: 171,398; xml: 1,459; sh: 34; makefile: 7
file content (5 lines) | stat: -rw-r--r-- 328 bytes parent folder | download
1
2
3
4
5
The Guava Preconditions checks take error message template strings that look
similar to format strings but only accept %s as a placeholder. This check points
out places where there is a non-%s placeholder in a Preconditions error message
template string and the number of arguments does not match the number of %s
placeholders.