From 5b6b7ffba27da6d07d8c74d00ad31141433ddeea Mon Sep 17 00:00:00 2001 From: Hippolyte Durix Date: Fri, 23 Jun 2023 11:42:01 +0200 Subject: [PATCH] Remove forced Sonar errors --- .../java/tech/jhipster/lite/module/domain/JHipsterModule.java | 1 - .../lite/module/infrastructure/primary/ModulesResource.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/tech/jhipster/lite/module/domain/JHipsterModule.java b/src/main/java/tech/jhipster/lite/module/domain/JHipsterModule.java index fa28950bd5b..9b5454645ff 100644 --- a/src/main/java/tech/jhipster/lite/module/domain/JHipsterModule.java +++ b/src/main/java/tech/jhipster/lite/module/domain/JHipsterModule.java @@ -9,7 +9,6 @@ import java.util.regex.Pattern; import java.util.stream.Stream; import org.apache.commons.lang3.StringUtils; -import org.springframework.web.util.UriBuilder; import tech.jhipster.lite.error.domain.Assert; import tech.jhipster.lite.module.domain.JHipsterModuleContext.JHipsterModuleContextBuilder; import tech.jhipster.lite.module.domain.JHipsterModulePreActions.JHipsterModulePreActionsBuilder; diff --git a/src/main/java/tech/jhipster/lite/module/infrastructure/primary/ModulesResource.java b/src/main/java/tech/jhipster/lite/module/infrastructure/primary/ModulesResource.java index c95aab408ea..4caa3570a64 100644 --- a/src/main/java/tech/jhipster/lite/module/infrastructure/primary/ModulesResource.java +++ b/src/main/java/tech/jhipster/lite/module/infrastructure/primary/ModulesResource.java @@ -52,7 +52,6 @@ public ResponseEntity modulesLandscape() { @PostMapping("apply-patches") @Operation(summary = "Apply multiple modules patches") public void applyPatches(@RequestBody @Validated RestJHipsterModulesToApply modulesToApply) { - String useless = ""; modules.apply(modulesToApply.toDomain(projectFolder)); }