Files
error-prone-support/docs/bugpatterns/ImmutablesSortedSetComparator.md
2022-09-27 10:20:29 +02:00

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 GitHub

ImmutablesSortedSetComparator

`SortedSet` properties of a `@Value.Immutable` or `@Value.Modifiable` type must be annotated with `@Value.NaturalOrder` or `@Value.ReverseOrder`

SeverityERROR
TagsLikelyError

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("ImmutablesSortedSetComparator") to the enclosing element.