Check for known reusable types being implicitly wasted.
Open
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
String.matches(), String.split(), and String.replaceAll() are prime examples of seductive convenience APIs. These are especially damaging, as they are commonly used in loops, where caching a Pattern is an easy fix.
It'd be cool to have Error Prone complain about their usages and suggest using the Pattern APIs directly.
Contributor guide
Assessment
This issue has not been assessed yet.