ImmutableEnumChecker on a list coming from List.of(...) which is immutable
Open
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
### Description of the problem / feature request:
I'm getting `ImmutableEnumChecker` errors on such enum:
```
public enum SomeEnum {
SOME_VALUE(List.of(TYPE_1, TYPE_2))
public final List types;
SomeEnum(List types) {
this.types = types;
}
}
```
ErrorProne should not trigger `ImmutableEnumChecker` on collections created from `ImmutableCollections`
Contributor guide
Assessment
This issue has not been assessed yet.