diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2023-07-06 16:12:30 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-07-17 20:03:44 +0000 |
commit | a0f29cb5c393c912f45c4d4e7f4c8a5679162b0d (patch) | |
tree | 4dd5c0622c70c639dac142701aa3cbcb45eb5e86 /server/sonar-db-dao/src/main/java/org/sonar/db/user | |
parent | 5737b08804feb53257e712443b2eb69ab4607f47 (diff) | |
download | sonarqube-a0f29cb5c393c912f45c4d4e7f4c8a5679162b0d.tar.gz sonarqube-a0f29cb5c393c912f45c4d4e7f4c8a5679162b0d.zip |
NO-JIRA replace MoreCollectors.toList with Collectors.toList
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar/db/user')
-rw-r--r-- | server/sonar-db-dao/src/main/java/org/sonar/db/user/UserTokenDao.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/user/UserTokenDao.java b/server/sonar-db-dao/src/main/java/org/sonar/db/user/UserTokenDao.java index 589f3655614..c9090eaaebe 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/user/UserTokenDao.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/user/UserTokenDao.java @@ -25,6 +25,7 @@ import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.stream.Collectors; import javax.annotation.CheckForNull; import javax.annotation.Nullable; import org.sonar.core.util.UuidFactory; @@ -33,7 +34,6 @@ import org.sonar.db.DbSession; import org.sonar.db.audit.AuditPersister; import org.sonar.db.audit.model.UserTokenNewValue; -import static org.sonar.core.util.stream.MoreCollectors.toList; import static org.sonar.db.DatabaseUtils.executeLargeInputs; public class UserTokenDao implements Dao { @@ -82,7 +82,7 @@ public class UserTokenDao implements Dao { public Map<String, Integer> countTokensByUsers(DbSession dbSession, Collection<UserDto> users) { Map<String, Integer> result = new HashMap<>(users.size()); executeLargeInputs( - users.stream().map(UserDto::getUuid).collect(toList()), + users.stream().map(UserDto::getUuid).collect(Collectors.toList()), input -> { List<UserTokenCount> userTokenCounts = mapper(dbSession).countTokensByUserUuids(input); for (UserTokenCount userTokenCount : userTokenCounts) { |