ContributorAgreementsChecker: Use Java's Objects.requireNonNull

Usage of Preconditions.checkNotNull was replaced with the Java API
in change I1d4a6b342e, but this one was either missed or added later.

Change-Id: I93ec9f3077bbda3737d995032a458e1337abba52
This commit is contained in:
David Pursehouse
2018-11-11 10:39:00 +09:00
parent f097a5d38b
commit d386c4a28c

View File

@@ -15,7 +15,7 @@
package com.google.gerrit.server.project;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static java.util.Objects.requireNonNull;
import com.google.gerrit.common.data.ContributorAgreement;
import com.google.gerrit.common.data.PermissionRule;
@@ -135,7 +135,7 @@ public class ContributorAgreementsChecker {
}
private boolean projectMatchesAnyPattern(String projectName, List<String> regexes) {
checkNotNull(regexes);
requireNonNull(regexes);
checkArgument(!regexes.isEmpty());
for (String patternString : regexes) {
Pattern pattern;