aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java
diff options
context:
space:
mode:
authorEric Giffon <eric.giffon@sonarsource.com>2023-07-26 15:52:00 +0200
committersonartech <sonartech@sonarsource.com>2023-07-31 20:03:31 +0000
commit6cb1c5332fc28391af46f00252db894954d10dfd (patch)
tree01aa1dfc37fbb3b9518b79c83b7cd2b9c854fc67 /sonar-scanner-engine/src/main/java
parente0f8e15dbec318e77c26d24a75802c901e06e4e5 (diff)
downloadsonarqube-6cb1c5332fc28391af46f00252db894954d10dfd.tar.gz
sonarqube-6cb1c5332fc28391af46f00252db894954d10dfd.zip
SONAR-19233 Drop deprecated paging response fields
Diffstat (limited to 'sonar-scanner-engine/src/main/java')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java
index 5768377de8e..6c1766f54e3 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java
@@ -63,9 +63,9 @@ public class DefaultActiveRulesLoader implements ActiveRulesLoader {
SearchResponse response = loadFromStream(wsClient.call(getRequest).contentStream());
List<LoadedActiveRule> pageRules = readPage(response);
ruleList.addAll(pageRules);
- loaded += response.getPs();
+ loaded += response.getPaging().getPageSize();
- if (response.getTotal() <= loaded) {
+ if (response.getPaging().getTotal() <= loaded) {
break;
}
page++;