Consider an inspection that would suggest replacing HashMap, HashSet, Collectors.toSet, Collectors.toMap with Linked alternatives for deterministic oder
Open
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
`HashSet`, `HashMap`, `Collectors.toSet()`, and similar APIs do not keep the element order, and it might result in surprising and unexpected results.
What if error-prone could catch those types of errors and suggest replacing the calls via `LinkedHash*`?
See https://github.com/jlink/jqwik/pull/348
Contributor guide
Assessment
This issue has not been assessed yet.