From c75f6ec98d2171c232537612e7f1d628e5535e61 Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Thu, 5 Jan 2023 11:21:32 +0100 Subject: [PATCH] SONAR-17815 add isCaycCompliant flag in application status endpoint --- .../org/sonar/server/qualitygate/ws/ShowAction.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/ShowAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/ShowAction.java index decfc3346a6..265ba4c20de 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/ShowAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualitygate/ws/ShowAction.java @@ -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); -- 2.39.5