From: Duarte Meneses Date: Mon, 1 Nov 2021 16:59:02 +0000 (-0500) Subject: Use Java 11 API instead of Guava X-Git-Tag: 9.2.0.49834~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e273c3fa1580e56869f9a2136aa29ad9414ea5f6;p=sonarqube.git Use Java 11 API instead of Guava --- diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectexport/rule/RuleRepositoryImpl.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectexport/rule/RuleRepositoryImpl.java index 736c8cff6bd..fc309ad4143 100644 --- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectexport/rule/RuleRepositoryImpl.java +++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectexport/rule/RuleRepositoryImpl.java @@ -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 getAll() { - return ImmutableList.copyOf(rulesByUuid.values()); + return List.copyOf(rulesByUuid.values()); } }