diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2023-07-06 16:12:30 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-07-17 20:03:44 +0000 |
commit | a0f29cb5c393c912f45c4d4e7f4c8a5679162b0d (patch) | |
tree | 4dd5c0622c70c639dac142701aa3cbcb45eb5e86 /server/sonar-main | |
parent | 5737b08804feb53257e712443b2eb69ab4607f47 (diff) | |
download | sonarqube-a0f29cb5c393c912f45c4d4e7f4c8a5679162b0d.tar.gz sonarqube-a0f29cb5c393c912f45c4d4e7f4c8a5679162b0d.zip |
NO-JIRA replace MoreCollectors.toList with Collectors.toList
Diffstat (limited to 'server/sonar-main')
-rw-r--r-- | server/sonar-main/src/main/java/org/sonar/application/es/EsInstallation.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/es/EsInstallation.java b/server/sonar-main/src/main/java/org/sonar/application/es/EsInstallation.java index 68b21afdc22..8eaf89f1f2c 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/es/EsInstallation.java +++ b/server/sonar-main/src/main/java/org/sonar/application/es/EsInstallation.java @@ -26,11 +26,11 @@ import java.util.Collections; import java.util.List; import java.util.Optional; import java.util.Properties; +import java.util.stream.Collectors; import java.util.stream.Stream; import javax.annotation.Nullable; import org.apache.commons.lang.StringUtils; import org.sonar.application.command.EsJvmOptions; -import org.sonar.core.util.stream.MoreCollectors; import org.sonar.process.Props; import static org.sonar.process.ProcessProperties.Property.CLUSTER_ENABLED; @@ -108,7 +108,7 @@ public class EsInstallation { String dataPath = props.nonNullValue(PATH_DATA.getKey()); return Stream.of("es", "es5", "es6", "es7") .map(t -> new File(dataPath, t)) - .collect(MoreCollectors.toList()); + .collect(Collectors.toList()); } private static File buildDataDir(Props props) { |