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);