StringSplitter Pattern not Consistently Detected
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
**Expected**: Code snippet that uses `String.split(String)`, e.g. `"me:you".split(":")`, should consistently trigger [StringSplitter](https://errorprone.info/bugpattern/StringSplitter) pattern.
**Actual**: When passed as parameter into certain other methods `List.of(T...)`, `Stream.of(T...)`, `Arrays.asList(T...)` and `Assertions.assertThat(T[])` (from AssertJ), the above snippet does not trigger StringSplitter (please see minimal example project at https://github.com/iadcode/sample-string-splitter).
**JDK**: 11.0.16.1 (also observed on 17.0.4.1)
**Maven**: 2.8.6
**Errorprone Maven Plugin**: 2.15.0
**Screenshots of Compiling Example Project**
Test Case 1 - StringSplitter is triggered

Test Case 2 - StringSplitter not triggered

Contributor guide
Assessment
This issue has not been assessed yet.