From 8fc956731afade8185eaa1c478f60338b8b90b4e Mon Sep 17 00:00:00 2001 From: Tristan Chuine Date: Tue, 11 Jun 2024 17:20:50 +0200 Subject: [PATCH] sonar fix --- .../study/server/dto/ShortCircuitPredefinedConfiguration.java | 1 + .../java/org/gridsuite/study/server/service/StudyService.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gridsuite/study/server/dto/ShortCircuitPredefinedConfiguration.java b/src/main/java/org/gridsuite/study/server/dto/ShortCircuitPredefinedConfiguration.java index 54d155603..7b8abef71 100644 --- a/src/main/java/org/gridsuite/study/server/dto/ShortCircuitPredefinedConfiguration.java +++ b/src/main/java/org/gridsuite/study/server/dto/ShortCircuitPredefinedConfiguration.java @@ -8,6 +8,7 @@ /** * @author AJELLAL Ali + * @deprecated for delete */ @Deprecated(forRemoval = true, since = "1.7.0") public enum ShortCircuitPredefinedConfiguration { diff --git a/src/main/java/org/gridsuite/study/server/service/StudyService.java b/src/main/java/org/gridsuite/study/server/service/StudyService.java index 700c3b889..9414c7454 100644 --- a/src/main/java/org/gridsuite/study/server/service/StudyService.java +++ b/src/main/java/org/gridsuite/study/server/service/StudyService.java @@ -1739,7 +1739,7 @@ public UUID runSensitivityAnalysis(UUID studyUuid, UUID nodeUuid, String userId) return result; } - public UUID runShortCircuit(UUID studyUuid, UUID nodeUuid, Optional busId, String userId) throws JsonProcessingException { + public UUID runShortCircuit(UUID studyUuid, UUID nodeUuid, Optional busId, String userId) { networkModificationTreeService.getComputationResultUuid(nodeUuid, busId.isEmpty() ? SHORT_CIRCUIT : SHORT_CIRCUIT_ONE_BUS) .ifPresent(shortCircuitService::deleteShortCircuitAnalysisResult); final Optional parametersUuid = studyRepository.findById(studyUuid).map(StudyEntity::getShortCircuitParametersUuid);