From e0aaa8a3e0fac7d3b06b428b17ec640677f4ecad Mon Sep 17 00:00:00 2001 From: Bogdan Kostov Date: Thu, 10 Oct 2024 16:16:40 +0200 Subject: [PATCH 1/2] Refactor - rename local variable name --- .../cz/cvut/kbss/analysis/controller/SystemController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cz/cvut/kbss/analysis/controller/SystemController.java b/src/main/java/cz/cvut/kbss/analysis/controller/SystemController.java index 8b14461..2ebf95e 100755 --- a/src/main/java/cz/cvut/kbss/analysis/controller/SystemController.java +++ b/src/main/java/cz/cvut/kbss/analysis/controller/SystemController.java @@ -67,10 +67,10 @@ public System create(@RequestBody System system) { public System rename(@RequestBody System system) { log.info("> rename - {}", system); - System updatedTree = repositoryService.rename(system); + System updatedSystem = repositoryService.rename(system); - log.info("< rename - {}", updatedTree); - return updatedTree; + log.info("< rename - {}", updatedSystem); + return updatedSystem; } @ResponseStatus(HttpStatus.NO_CONTENT) From 707cd5d484beae3a1aad81bf592b5a626bccf112 Mon Sep 17 00:00:00 2001 From: Bogdan Kostov Date: Thu, 10 Oct 2024 16:19:22 +0200 Subject: [PATCH 2/2] [Fix kbss-cvut/fta-fmea-ui#606] Use correct validator in FaultTreeRepositoryService --- .../cvut/kbss/analysis/service/FaultTreeRepositoryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cz/cvut/kbss/analysis/service/FaultTreeRepositoryService.java b/src/main/java/cz/cvut/kbss/analysis/service/FaultTreeRepositoryService.java index 86d0ce0..65adcf3 100755 --- a/src/main/java/cz/cvut/kbss/analysis/service/FaultTreeRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/analysis/service/FaultTreeRepositoryService.java @@ -56,7 +56,7 @@ public class FaultTreeRepositoryService extends ComplexManagedEntityRepositorySe private final FailureRateDao failureRateDao; @Autowired - public FaultTreeRepositoryService(@Qualifier("defaultEntityValidator") EntityValidator validator, + public FaultTreeRepositoryService(@Qualifier("faultTreeValidator") EntityValidator validator, FaultTreeDao faultTreeDao, FaultEventScenarioDao faultEventScenarioDao, FaultEventRepositoryService faultEventRepositoryService,