aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-07-19 21:48:19 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-07-25 23:02:07 +0200
commit710daeb6ef71ae21bd55a83f863907e14aa458a6 (patch)
treebcdbbdc8cf31dbfc13b3f2be6d27bdb9d3b69ff0 /server/sonar-db-dao
parent71a00349dbf59b7161af75b095a641084b4a8aa3 (diff)
downloadsonarqube-710daeb6ef71ae21bd55a83f863907e14aa458a6.tar.gz
sonarqube-710daeb6ef71ae21bd55a83f863907e14aa458a6.zip
Decrease coupling with Guava
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentKeyUpdaterDao.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentKeyUpdaterDao.java b/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentKeyUpdaterDao.java
index b954a67e27f..c001028bcf6 100644
--- a/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentKeyUpdaterDao.java
+++ b/server/sonar-db-dao/src/main/java/org/sonar/db/component/ComponentKeyUpdaterDao.java
@@ -23,8 +23,8 @@ import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
-import com.google.common.collect.Sets;
import java.util.Collection;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -132,7 +132,7 @@ public class ComponentKeyUpdaterDao implements Dao {
private static Set<ResourceDto> collectAllModules(String projectUuid, String stringToReplace, ComponentKeyUpdaterMapper mapper) {
ResourceDto project = mapper.selectProject(projectUuid);
- Set<ResourceDto> modules = Sets.newHashSet();
+ Set<ResourceDto> modules = new HashSet<>();
if (project.getKey().contains(stringToReplace)) {
modules.add(project);
}