Skip to content

Commit

Permalink
Improve documentation for ImmutableSetForContains.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 344871950
  • Loading branch information
ashish1294 authored and Error Prone Team committed Nov 30, 2020
1 parent d41b86f commit 4c49d59
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@
@BugPattern(
name = "ImmutableSetForContains",
summary =
"ImmutableSet is a more efficient type for private static final constants if the constant"
+ " is only used for contains, containsAll or isEmpty checks.",
"This private static ImmutableList either does not contain duplicates or is only used for"
+ " contains, containsAll or isEmpty checks or both. ImmutableSet is a better type for"
+ " such collection. It is often more efficient and / or captures useful info about"
+ " absence of duplicates.",
severity = SUGGESTION)
public final class ImmutableSetForContains extends BugChecker implements ClassTreeMatcher {

Expand Down

0 comments on commit 4c49d59

Please sign in to comment.