diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2023-12-04 12:50:58 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-12-04 20:03:22 +0000 |
commit | d62a56ecfd4cf2f183873900fd32cffc4743c7fb (patch) | |
tree | 552481ceb8b8cab34f74b59563b58278ffa62f69 /server/sonar-webserver-core/src | |
parent | cdda3dbcdd4e4b5f4a2e7471a37fa66877e26aad (diff) | |
download | sonarqube-d62a56ecfd4cf2f183873900fd32cffc4743c7fb.tar.gz sonarqube-d62a56ecfd4cf2f183873900fd32cffc4743c7fb.zip |
SONAR-21174 Fix code smells raised after dropping JDK11 support
Diffstat (limited to 'server/sonar-webserver-core/src')
-rw-r--r-- | server/sonar-webserver-core/src/it/java/org/sonar/server/telemetry/TelemetryDataLoaderImplIT.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-webserver-core/src/it/java/org/sonar/server/telemetry/TelemetryDataLoaderImplIT.java b/server/sonar-webserver-core/src/it/java/org/sonar/server/telemetry/TelemetryDataLoaderImplIT.java index 0cb082ad3fd..c55a8594557 100644 --- a/server/sonar-webserver-core/src/it/java/org/sonar/server/telemetry/TelemetryDataLoaderImplIT.java +++ b/server/sonar-webserver-core/src/it/java/org/sonar/server/telemetry/TelemetryDataLoaderImplIT.java @@ -33,7 +33,6 @@ import java.util.Optional; import java.util.Set; import java.util.function.Consumer; import java.util.function.Function; -import java.util.stream.Collectors; import java.util.stream.IntStream; import org.junit.Before; import org.junit.Rule; @@ -304,7 +303,7 @@ public class TelemetryDataLoaderImplIT { .extracting(TelemetryData.QualityGate::uuid, TelemetryData.QualityGate::caycStatus, qg -> qg.conditions().stream() .map(condition -> tuple(condition.getMetricKey(), condition.getOperator().getDbValue(), condition.getErrorThreshold(), condition.isOnLeakPeriod())) - .collect(Collectors.toList())) + .toList()) .containsExactlyInAnyOrder( tuple(builtInDefaultQualityGate.getUuid(), "non-compliant", Collections.emptyList()), tuple(qualityGate1.getUuid(), "non-compliant", List.of(tuple(vulnerabilitiesDto.getKey(), condition1.getOperator(), condition1.getErrorThreshold(), false))), |