diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-08-21 14:29:39 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-08-21 20:21:06 +0200 |
commit | 8de7653276bfef55580ad8a09cb9ba0c957e515b (patch) | |
tree | bc3046086771ccaa94fe18420ee8ed104ccc85b7 | |
parent | 97965a2a2ea091de96f753aa34a7651cfa9a187f (diff) | |
download | sonarqube-8de7653276bfef55580ad8a09cb9ba0c957e515b.tar.gz sonarqube-8de7653276bfef55580ad8a09cb9ba0c957e515b.zip |
remove useless array copy in ListInterceptor
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/log/ListInterceptor.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/ListInterceptor.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/ListInterceptor.java index 3d2a23d99a0..160318f280b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/ListInterceptor.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/ListInterceptor.java @@ -19,7 +19,6 @@ */ package org.sonar.api.utils.log; -import com.google.common.collect.ImmutableList; import java.util.Collections; import java.util.List; import java.util.Map; @@ -86,7 +85,7 @@ public class ListInterceptor implements LogInterceptor { if (res == null) { return Collections.emptyList(); } - return ImmutableList.copyOf(res).stream().map(LogAndArguments::getFormattedMsg).collect(Collectors.toList()); + return res.stream().map(LogAndArguments::getFormattedMsg).collect(Collectors.toList()); } public List<LogAndArguments> getLogs() { |