ThreadBuilderNameWithPlaceholder
Thread.Builder.name() does not accept placeholders (e.g., %d or %s). threadBuilder.name(String) accepts a constant name and threadBuilder.name(String, int) accepts a constant name _prefix_ and an initial counter value.
- Severity
- ERROR
- Tags
- LikelyError
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("ThreadBuilderNameWithPlaceholder")
to the enclosing element.