Skip to content

Commit

Permalink
Disable @immutable error-prone check
Browse files Browse the repository at this point in the history
Some Trino classes are marked as @immutable but in fact, they are mutable as they contain mutable fields,
which makes them fail the error-prone Immutable check.
  • Loading branch information
wendigo committed Jul 6, 2023
1 parent bd23db3 commit c976933
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2366,6 +2366,8 @@
<!-- needs some careful inspection -->
-Xep:GuardedBy:OFF \
-Xep:HidingField:ERROR \
<!-- This check requires list fields to be declared as ImmutableList, which is not in line with project's code style -->
-Xep:Immutable:OFF \
<!-- flags enums with List fields even if initialized with ImmutableList, and other false positives -->
-Xep:ImmutableEnumChecker:OFF \
-Xep:ImmutableSetForContains:ERROR \
Expand Down

0 comments on commit c976933

Please sign in to comment.