]> source.dussan.org Git - sonarqube.git/commitdiff
remove useless array copy in ListInterceptor
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 21 Aug 2018 12:29:39 +0000 (14:29 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 21 Aug 2018 18:21:06 +0000 (20:21 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/utils/log/ListInterceptor.java

index 3d2a23d99a08f05ea21c8d4ef653b81d2dd48b2a..160318f280be0b2bdfd7ab398a18a4d6dcee1fe6 100644 (file)
@@ -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() {