From e273c3fa1580e56869f9a2136aa29ad9414ea5f6 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Mon, 1 Nov 2021 11:59:02 -0500 Subject: [PATCH] Use Java 11 API instead of Guava --- .../sonar/ce/task/projectexport/rule/RuleRepositoryImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } } -- 2.39.5