diff --git a/src/main/java/tech/jhipster/lite/generator/server/sonar/infrastructure/primary/SonarResource.java b/src/main/java/tech/jhipster/lite/generator/server/sonar/infrastructure/primary/SonarResource.java index bc2e73fe4bd..b01b169eaad 100644 --- a/src/main/java/tech/jhipster/lite/generator/server/sonar/infrastructure/primary/SonarResource.java +++ b/src/main/java/tech/jhipster/lite/generator/server/sonar/infrastructure/primary/SonarResource.java @@ -2,7 +2,6 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.responses.ApiResponse; -import io.swagger.v3.oas.annotations.responses.ApiResponses; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -24,7 +23,7 @@ public SonarResource(SonarApplicationService sonarApplicationService) { } @Operation(summary = "Add Sonar configuration to inspect code quality") - @ApiResponses({ @ApiResponse(responseCode = "500", description = "An error occurred while adding Sonar configuration") }) + @ApiResponse(responseCode = "500", description = "An error occurred while adding Sonar configuration") @PostMapping public void addSonar(@RequestBody ProjectDTO projectDTO) { Project project = ProjectDTO.toProject(projectDTO);