Skip to content

Commit

Permalink
[ISSUE #8193] Remove redundant code (#8200)
Browse files Browse the repository at this point in the history
* remove redundant code

* fix constructor
  • Loading branch information
qiugongzi authored Apr 27, 2022
1 parent 98d1221 commit 896bddd
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 896bddd

Please sign in to comment.