Browse Source

clone

master
zheng 6 years ago
parent
commit
0438a9dfe7
  1. 3
      src/com/fr/plugin/demo/DemoDataConfig.java

3
src/com/fr/plugin/demo/DemoDataConfig.java

@ -100,7 +100,7 @@ public class DemoDataConfig extends AbstractDataConfig {
@Override @Override
public DemoDataConfig clone() throws CloneNotSupportedException { public DemoDataConfig clone() throws CloneNotSupportedException {
DemoDataConfig result = new DemoDataConfig(); DemoDataConfig result = (DemoDataConfig)super.clone();
result.setX(this.getX().clone()); result.setX(this.getX().clone());
result.setTargetName(this.getTargetName()); result.setTargetName(this.getTargetName());
result.setY(this.getY().clone()); result.setY(this.getY().clone());
@ -119,6 +119,7 @@ public class DemoDataConfig extends AbstractDataConfig {
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
return obj instanceof DemoDataConfig return obj instanceof DemoDataConfig
&& super.equals(obj)
&& AssistUtils.equals(this.getX(), ((DemoDataConfig) obj).getX()) && AssistUtils.equals(this.getX(), ((DemoDataConfig) obj).getX())
&& AssistUtils.equals(this.getTargetName(), ((DemoDataConfig) obj).getTargetName()) && AssistUtils.equals(this.getTargetName(), ((DemoDataConfig) obj).getTargetName())
&& AssistUtils.equals(this.getY(), ((DemoDataConfig) obj).getY()) && AssistUtils.equals(this.getY(), ((DemoDataConfig) obj).getY())

Loading…
Cancel
Save