From 69b5eb175180dc486505e9b9db9ae0cd0eb86a11 Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Thu, 1 Jul 2021 17:27:07 +0200 Subject: [PATCH] SONAR-14836 fix hotspots api doc example --- .../src/main/java/org/sonar/server/hotspot/ws/SearchAction.java | 2 +- .../java/org/sonarqube/ws/client/hotspots/SearchRequest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java index bdeeb675d65..0fb20222fe8 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java @@ -198,7 +198,7 @@ public class SearchAction implements HotspotsWsAction { .setDescription(format( "Comma-separated list of Security Hotspot keys. This parameter is required unless %s is provided.", PARAM_PROJECT_KEY)) - .setExampleValue(KEY_PROJECT_EXAMPLE_001); + .setExampleValue("AWhXpLoInp4On-Y3xc8x"); action.createParam(PARAM_STATUS) .setDescription("If '%s' is provided, only Security Hotspots with the specified status are returned.", PARAM_PROJECT_KEY) .setPossibleValues(STATUSES) diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/SearchRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/SearchRequest.java index 638dff66768..fac5fec07cc 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/SearchRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/SearchRequest.java @@ -57,7 +57,7 @@ public class SearchRequest { } /** - * Example value: "my_project" + * Example value: "AWhXpLoInp4On-Y3xc8x" */ public SearchRequest setHotspots(List hotspots) { this.hotspots = hotspots; -- 2.39.5