From d665f579fb47debc87f9ef8c4b88df0e884920c8 Mon Sep 17 00:00:00 2001 From: Felix Dittrich <31076102+f11h@users.noreply.github.com> Date: Tue, 25 Oct 2022 16:00:34 +0200 Subject: [PATCH] Chore: Update CWA-Parent to 1.7.1 (#266) * Update CWA-Parent to 1.7.1 * Update Checkstyle Config to > 3.2.0 Co-authored-by: github-actions --- codestyle/checkstyle.xml | 2 +- pom.xml | 5 ++--- .../quicktest/controller/CancellationController.java | 2 +- .../quicktest/controller/QuickTestController.java | 12 ++++++------ 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/codestyle/checkstyle.xml b/codestyle/checkstyle.xml index efd8abd3..37221e81 100644 --- a/codestyle/checkstyle.xml +++ b/codestyle/checkstyle.xml @@ -282,7 +282,7 @@ value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/> - + diff --git a/pom.xml b/pom.xml index 39d8ed6c..76b1154f 100644 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,10 @@ - + 4.0.0 app.coronawarn cwa-parent - 1.6 + 1.7.1 cwa-quick-test-backend 1.0.0-SNAPSHOT diff --git a/src/main/java/app/coronawarn/quicktest/controller/CancellationController.java b/src/main/java/app/coronawarn/quicktest/controller/CancellationController.java index d0e54e35..43330779 100644 --- a/src/main/java/app/coronawarn/quicktest/controller/CancellationController.java +++ b/src/main/java/app/coronawarn/quicktest/controller/CancellationController.java @@ -111,7 +111,7 @@ public ResponseEntity getCancellation() { @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Successful"), @ApiResponse(responseCode = "400", description = "Download Link for given PartnerId not yet available, " - + "cancellation might not have been processed yet."), + + "cancellation might not have been processed yet."), @ApiResponse(responseCode = "404", description = "No cancellation found for given PartnerId.") }) @GetMapping(value = "/download", produces = MediaType.APPLICATION_JSON_VALUE) diff --git a/src/main/java/app/coronawarn/quicktest/controller/QuickTestController.java b/src/main/java/app/coronawarn/quicktest/controller/QuickTestController.java index 14de62c2..5cf74637 100644 --- a/src/main/java/app/coronawarn/quicktest/controller/QuickTestController.java +++ b/src/main/java/app/coronawarn/quicktest/controller/QuickTestController.java @@ -85,7 +85,7 @@ public class QuickTestController { @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "OK"), @ApiResponse(responseCode = "403", description = - "Cancellation already started, endpoint is not available anymore."), + "Cancellation already started, endpoint is not available anymore."), @ApiResponse(responseCode = "500", description = "Query failed due to an internal server error") }) @GetMapping(value = "", produces = MediaType.APPLICATION_JSON_VALUE) @@ -127,7 +127,7 @@ public ResponseEntity getQuickTestsForTenantIdAndPocId() @ApiResponses(value = { @ApiResponse(responseCode = "201", description = "Quicktest is created"), @ApiResponse(responseCode = "403", description = - "Cancellation already started, endpoint is not available anymore."), + "Cancellation already started, endpoint is not available anymore."), @ApiResponse(responseCode = "409", description = "Quicktest with short hash already exists"), @ApiResponse(responseCode = "500", description = "Inserting failed because of internal error.")}) @PostMapping(value = "", consumes = MediaType.APPLICATION_JSON_VALUE) @@ -164,7 +164,7 @@ public ResponseEntity createQuickTest(@Valid @RequestBody QuickTestCreatio @ApiResponse(responseCode = "200 ", description = "Deletion successful."), @ApiResponse(responseCode = "403", description = "Deletion of updated Quicktests not allowed."), @ApiResponse(responseCode = "403", description = - "Cancellation started more then 24 hours ago, endpoint is not available anymore."), + "Cancellation started more then 24 hours ago, endpoint is not available anymore."), @ApiResponse(responseCode = "500", description = "Updating failed because of internal error.")}) @DeleteMapping(value = "/{shortHash}") @Secured(ROLE_COUNTER) @@ -191,7 +191,7 @@ public ResponseEntity deleteEmptyQuickTest(@Valid @PathVariable("shortHash @ApiResponses(value = { @ApiResponse(responseCode = "204 ", description = "Update successful"), @ApiResponse(responseCode = "403", description = - "Cancellation started more then 24 hours ago, endpoint is not available anymore."), + "Cancellation started more then 24 hours ago, endpoint is not available anymore."), @ApiResponse(responseCode = "404", description = "Short Hash doesn't exists"), @ApiResponse(responseCode = "500", description = "Updating failed because of internal error.")}) @PutMapping(value = "/{shortHash}/testResult", consumes = MediaType.APPLICATION_JSON_VALUE) @@ -230,7 +230,7 @@ public ResponseEntity updateQuickTestStatus( @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "test found"), @ApiResponse(responseCode = "403", description = - "Cancellation started more then 24 hours ago, endpoint is not available anymore."), + "Cancellation started more then 24 hours ago, endpoint is not available anymore."), @ApiResponse(responseCode = "404", description = "test not found"), @ApiResponse(responseCode = "500", description = "internal error.")}) @GetMapping(value = "/{shortHash}", produces = MediaType.APPLICATION_JSON_VALUE) @@ -265,7 +265,7 @@ public ResponseEntity getDccConsent( @ApiResponses(value = { @ApiResponse(responseCode = "204 ", description = "Update successful"), @ApiResponse(responseCode = "403", description = - "Cancellation already started, endpoint is not available anymore."), + "Cancellation already started, endpoint is not available anymore."), @ApiResponse(responseCode = "404", description = "Short Hash doesn't exists"), @ApiResponse(responseCode = "500", description = "Updating failed because of internal error.")}) @PutMapping(value = "/{shortHash}/personalData", consumes = MediaType.APPLICATION_JSON_VALUE)