From 35146f057fe76f162628f20cb773fbdfbd570399 Mon Sep 17 00:00:00 2001 From: zhangliang Date: Thu, 28 Sep 2023 12:06:14 +0800 Subject: [PATCH] Refactor StorageNodeName --- .../infra/metadata/database/resource/node/StorageNodeName.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/resource/node/StorageNodeName.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/resource/node/StorageNodeName.java index a74bde4e905e7..3ec99ec0e1a63 100644 --- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/resource/node/StorageNodeName.java +++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/resource/node/StorageNodeName.java @@ -33,7 +33,7 @@ public final class StorageNodeName { public StorageNodeName(final String hostname, final int port, final String username) { name = String.format("%s_%s_%s", hostname, port, username); } - + @Override public boolean equals(final Object obj) { return obj instanceof StorageNodeName && ((StorageNodeName) obj).name.equalsIgnoreCase(name);