From 896bddd0436d8c754078ccddee3bd2aea2b84114 Mon Sep 17 00:00:00 2001 From: ChunHuiQiu <32306504+qiugongzi@users.noreply.github.com> Date: Wed, 27 Apr 2022 13:50:48 +0800 Subject: [PATCH] [ISSUE #8193] Remove redundant code (#8200) * remove redundant code * fix constructor --- .../execute/DefaultInstanceUpgradeHelper.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/core/v2/upgrade/doublewrite/execute/DefaultInstanceUpgradeHelper.java b/naming/src/main/java/com/alibaba/nacos/naming/core/v2/upgrade/doublewrite/execute/DefaultInstanceUpgradeHelper.java index 6dfd1899563..e1d37ebe67e 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/core/v2/upgrade/doublewrite/execute/DefaultInstanceUpgradeHelper.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/core/v2/upgrade/doublewrite/execute/DefaultInstanceUpgradeHelper.java @@ -55,15 +55,6 @@ public InstanceUpgradeHelper defaultInstanceUpgradeHelper() { public Instance toV1(com.alibaba.nacos.api.naming.pojo.Instance v2) { Instance v1 = new Instance(v2.getIp(), v2.getPort(), v2.getClusterName()); BeanUtils.copyProperties(v2, v1); - v1.setIp(v2.getIp()); - v1.setPort(v2.getPort()); - v1.setClusterName(v2.getClusterName()); - v1.setHealthy(v2.isHealthy()); - v1.setEphemeral(v2.isEphemeral()); - v1.setWeight(v2.getWeight()); - v1.setMetadata(v2.getMetadata()); - v1.setEnabled(v2.isEnabled()); - v1.setServiceName(v2.getServiceName()); return v1; }