mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
1.2 KiB
1.2 KiB
layout, title, parent, nav_order
| layout | title | parent | nav_order |
|---|---|---|---|
| default | ImmutablesSortedSetComparator | Bug Patterns | 1 |
ImmutablesSortedSetComparator
LikelyError
${EXTRA_DOCS}
Samples
```java public static void sample() {} ```
View source code on GitHubImmutablesSortedSetComparator
`SortedSet` properties of a `@Value.Immutable` or `@Value.Modifiable` type must be annotated with `@Value.NaturalOrder` or `@Value.ReverseOrder`
| Severity | ERROR |
| Tags | LikelyError |
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("ImmutablesSortedSetComparator") to the enclosing element.