]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17815 add isCaycCompliant flag in application status endpoint
authorZipeng WU <zipeng.wu@sonarsource.com>
Thu, 5 Jan 2023 10:21:32 +0000 (11:21 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 5 Jan 2023 20:02:56 +0000 (20:02 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/ShowAction.java

index decfc3346a64c004aaa4e2f38edb57899e928f7f..265ba4c20de20b9e9b2c229f9bd76225c6dd6578 100644 (file)
@@ -63,8 +63,12 @@ public class ShowAction implements QualityGatesWsAction {
     this.qualityGateCaycChecker = qualityGateCaycChecker;
   }
 
-  @Override public void define(WebService.NewController controller) {
-    WebService.NewAction action = controller.createAction("show").setDescription("Display the details of a quality gate").setSince("4.3")
+  @Override
+  public void define(WebService.NewController controller) {
+    WebService.NewAction action = controller
+      .createAction("show")
+      .setDescription("Display the details of a quality gate")
+      .setSince("4.3")
       .setResponseExample(Resources.getResource(this.getClass(), "show-example.json"))
       .setChangelog(
         new Change("9.9", "'isCaycCompliant' field is added to the response"),
@@ -84,7 +88,8 @@ public class ShowAction implements QualityGatesWsAction {
       .setExampleValue("My Quality Gate");
   }
 
-  @Override public void handle(Request request, Response response) {
+  @Override
+  public void handle(Request request, Response response) {
     String id = request.param(PARAM_ID);
     String name = request.param(PARAM_NAME);
     checkOneOfIdOrNamePresent(id, name);