Skip to content

Commit

Permalink
StaticImport: Add candidates for java.util.Collections
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie authored and Stephan202 committed Apr 10, 2022
1 parent f0b5fbf commit 4fc85cf
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public final class StaticImportCheck extends BugChecker implements MemberSelectT
"com.mongodb.client.model.Sorts",
"com.mongodb.client.model.Updates",
"java.nio.charset.StandardCharsets",
"java.util.Collections",
"java.util.Comparator",
"java.util.Map.Entry",
"java.util.stream.Collectors",
Expand Down Expand Up @@ -120,6 +119,26 @@ public final class StaticImportCheck extends BugChecker implements MemberSelectT
.put("com.google.common.collect.ImmutableTable", "toImmutableTable")
.put("com.google.common.collect.Sets", "toImmutableEnumSet")
.put("com.google.common.base.Functions", "identity")
.putAll(
"java.util.Collections",
"disjoint",
"emptyList",
"emptyMap",
"emptySet",
"reverse",
"singleton",
"singletonList",
"singletonMap",
"synchronizedCollection",
"synchronizedList",
"synchronizedMap",
"synchronizedNavigableMap",
"synchronizedSet",
"unmodifiableCollection",
"unmodifiableList",
"unmodifiableMap",
"unmodifiableNavigableSet",
"unmodifiableSet")
.put("java.util.function.Function", "identity")
.put("java.util.function.Predicate", "not")
.put("org.junit.jupiter.params.provider.Arguments", "arguments")
Expand Down

0 comments on commit 4fc85cf

Please sign in to comment.