diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/config/configcenter/file/FileSystemDynamicConfiguration.java b/dubbo-common/src/main/java/org/apache/dubbo/common/config/configcenter/file/FileSystemDynamicConfiguration.java index 2544c056a47..36fb61f913b 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/common/config/configcenter/file/FileSystemDynamicConfiguration.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/common/config/configcenter/file/FileSystemDynamicConfiguration.java @@ -507,7 +507,7 @@ protected ThreadPoolExecutor getWorkersThreadPool() { return super.getWorkersThreadPool(); } - private V executeMutually(Object mutex, Callable callable) { + private V executeMutually(final Object mutex, Callable callable) { V value = null; synchronized (mutex) { try { diff --git a/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java b/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java index 3fe0eb1e438..1d394017447 100644 --- a/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java +++ b/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/support/AbstractMetadataReport.java @@ -394,7 +394,7 @@ class MetadataReportRetry { final ScheduledExecutorService retryExecutor = Executors.newScheduledThreadPool(0, new NamedThreadFactory("DubboMetadataReportRetryTimer", true)); volatile ScheduledFuture retryScheduledFuture; - AtomicInteger retryCounter = new AtomicInteger(0); + final AtomicInteger retryCounter = new AtomicInteger(0); // retry task schedule period long retryPeriod; // if no failed report, wait how many times to run retry task.