]> source.dussan.org Git - sonarqube.git/commitdiff
Use Java 11 API instead of Guava
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Mon, 1 Nov 2021 16:59:02 +0000 (11:59 -0500)
committersonartech <sonartech@sonarsource.com>
Tue, 9 Nov 2021 20:03:16 +0000 (20:03 +0000)
server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectexport/rule/RuleRepositoryImpl.java

index 736c8cff6bdef85f1cdbc99d7650fa78523df3b3..fc309ad414366c91cf219bd76402f97007f895e7 100644 (file)
@@ -19,9 +19,9 @@
  */
 package org.sonar.ce.task.projectexport.rule;
 
-import com.google.common.collect.ImmutableList;
 import java.util.Collection;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 import org.sonar.api.rule.RuleKey;
 
@@ -52,7 +52,7 @@ public class RuleRepositoryImpl implements RuleRepository {
 
   @Override
   public Collection<Rule> getAll() {
-    return ImmutableList.copyOf(rulesByUuid.values());
+    return List.copyOf(rulesByUuid.values());
   }
 
 }