From 3620bd598059d10ac0e533acb8f7dfda542906ab Mon Sep 17 00:00:00 2001 From: zhangliang Date: Fri, 6 Oct 2023 22:45:15 +0800 Subject: [PATCH] Rename StorageUnitNodeMapCreator --- .../database/resource/unit/StorageUnitNodeMapCreator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/resource/unit/StorageUnitNodeMapCreator.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/resource/unit/StorageUnitNodeMapCreator.java index bb3166396b7a2..dd3d38bfa883d 100644 --- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/resource/unit/StorageUnitNodeMapCreator.java +++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/resource/unit/StorageUnitNodeMapCreator.java @@ -46,8 +46,7 @@ public final class StorageUnitNodeMapCreator { public static Map create(final Map propsMap) { Map result = new LinkedHashMap<>(); for (Entry entry : propsMap.entrySet()) { - String storageUnitName = entry.getKey(); - result.put(storageUnitName, create(storageUnitName, entry.getValue())); + result.put(entry.getKey(), create(entry.getKey(), entry.getValue())); } return result; }