From 600cb0ea55af79d6b5a49e5f584878b9002da7f5 Mon Sep 17 00:00:00 2001 From: Giuseppe Nespolino Date: Wed, 21 Feb 2024 13:24:35 +0100 Subject: [PATCH] fix spotbugs --- .../ndc/harvester/service/CachingConfigService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/it/gov/innovazione/ndc/harvester/service/CachingConfigService.java b/src/main/java/it/gov/innovazione/ndc/harvester/service/CachingConfigService.java index c1390a7c..57caf13d 100644 --- a/src/main/java/it/gov/innovazione/ndc/harvester/service/CachingConfigService.java +++ b/src/main/java/it/gov/innovazione/ndc/harvester/service/CachingConfigService.java @@ -23,19 +23,19 @@ public synchronized NdcConfiguration getNdcConfiguration() { } @Override - public void writeConfigKey(ActualConfigService.ConfigKey key, String writtenBy, Object value) { + public synchronized void writeConfigKey(ActualConfigService.ConfigKey key, String writtenBy, Object value) { actualConfigService.writeConfigKey(key, writtenBy, value); ndcConfiguration = null; } @Override - public void setNdConfig(Map config, String writtenBy) { + public synchronized void setNdConfig(Map config, String writtenBy) { actualConfigService.setNdConfig(config, writtenBy); ndcConfiguration = null; } @Override - public void removeConfigKey(ActualConfigService.ConfigKey configKey, String writtenBy) { + public synchronized void removeConfigKey(ActualConfigService.ConfigKey configKey, String writtenBy) { actualConfigService.removeConfigKey(configKey, writtenBy); ndcConfiguration = null; }