diff options
Diffstat (limited to 'sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/QGateTester.java')
-rw-r--r-- | sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/QGateTester.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/QGateTester.java b/sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/QGateTester.java index 232949dffa5..b7efbfc9d2f 100644 --- a/sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/QGateTester.java +++ b/sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/QGateTester.java @@ -25,7 +25,6 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; -import java.util.stream.Collectors; import org.sonarqube.ws.Projects.CreateWsResponse.Project; import org.sonarqube.ws.client.qualitygates.CreateRequest; import org.sonarqube.ws.client.qualitygates.DestroyRequest; @@ -54,7 +53,7 @@ public class QGateTester { void deleteAll() { List<ListWsResponse.QualityGate> builtInQualityGates = session.wsClient().qualitygates().list(new ListRequest()).getQualitygatesList().stream() .filter(ListWsResponse.QualityGate::getIsBuiltIn) - .collect(Collectors.toList()); + .toList(); if (builtInQualityGates.size() == 1) { session.wsClient().qualitygates().setAsDefault(new SetAsDefaultRequest().setName(builtInQualityGates.get(0).getName())); } |