aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-08-31 10:46:42 -0500
committersonartech <sonartech@sonarsource.com>2021-09-08 20:03:35 +0000
commitc4e00bab051a72bf5da6bc9fc4cd791b37522a0b (patch)
tree13e80b7e0fcb0e9d5f117802f124db3a9682fc63 /server/sonar-server-common
parent7aca0ec0cce7c8129ab96690dc31548a1979bb6d (diff)
downloadsonarqube-c4e00bab051a72bf5da6bc9fc4cd791b37522a0b.tar.gz
sonarqube-c4e00bab051a72bf5da6bc9fc4cd791b37522a0b.zip
SONAR-15259 Improve unit tests and fix Move WS
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/view/index/ViewIndex.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/view/index/ViewIndex.java b/server/sonar-server-common/src/main/java/org/sonar/server/view/index/ViewIndex.java
index bff8fb5665f..773c63fd757 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/view/index/ViewIndex.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/view/index/ViewIndex.java
@@ -19,6 +19,7 @@
*/
package org.sonar.server.view.index;
+import java.util.ArrayList;
import java.util.List;
import org.elasticsearch.action.search.ClearScrollRequest;
import org.elasticsearch.action.search.SearchRequest;
@@ -57,7 +58,7 @@ public class ViewIndex {
.scroll(TimeValue.timeValueMinutes(SCROLL_TIME_IN_MINUTES));
SearchResponse response = esClient.search(esSearch);
- List<String> result = newArrayList();
+ List<String> result = new ArrayList<>();
while (true) {
List<SearchHit> hits = newArrayList(response.getHits());
for (SearchHit hit : hits) {