]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14836 fix hotspots api doc example
authorZipeng WU <zipeng.wu@sonarsource.com>
Thu, 1 Jul 2021 15:27:07 +0000 (17:27 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 1 Jul 2021 20:03:20 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java
sonar-ws/src/main/java/org/sonarqube/ws/client/hotspots/SearchRequest.java

index bdeeb675d65f367a4aec50fbb0d3bb7430bfbdc0..0fb20222fe89db315bfd8c5b4bc9192c27614dab 100644 (file)
@@ -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)
index 638dff66768b4d86294fb67d39acb97c4ab978c1..fac5fec07cc576cb6107945f7d8565fd7783fd84 100644 (file)
@@ -57,7 +57,7 @@ public class SearchRequest {
   }
 
   /**
-   * Example value: "my_project"
+   * Example value: "AWhXpLoInp4On-Y3xc8x"
    */
   public SearchRequest setHotspots(List<String> hotspots) {
     this.hotspots = hotspots;