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 committed Feb 7, 2022
1 parent 768ff29 commit 3bdadf4
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,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 @@ -110,6 +109,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 3bdadf4

Please sign in to comment.