DistinctVarargsChecker produces a lot of false positives
Open
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
`DistinctVarargsChecker` only compares arguments using their textual representation, which is an unreliable way to determine if two arguments are equivalent.
For example, `DistinctVarargsChecker` emits a warnings for this code:
```java
Set.of(UUID.randomUUID(), UUID.randomUUID())
```
Contributor guide
Assessment
This issue has not been assessed yet.