Browse Source

适配新版本的产品

10.0
LAPTOP-SB56SG4Q\86185 2 years ago
parent
commit
81d637b585
  1. 10
      src/main/java/com/tptj/demo/hg/connection/conn/DemoConnection.java

10
src/main/java/com/tptj/demo/hg/connection/conn/DemoConnection.java

@ -5,6 +5,7 @@ import com.fanruan.api.data.open.BaseConnection;
import com.fanruan.api.i18n.I18nKit;
import com.fanruan.api.util.StringKit;
import com.fr.config.holder.Conf;
import com.fr.stable.StringUtils;
import com.fr.stable.xml.XMLPrintWriter;
import com.fr.stable.xml.XMLableReader;
import com.fr.third.ibm.icu.impl.Assert;
@ -66,4 +67,13 @@ public class DemoConnection extends BaseConnection {
return cloned;
}
@Override
public boolean equals(Object obj) {
return super.equals(obj) &&
DemoConnection.class.isInstance( obj )
&& StringUtils.equals(
DemoConnection.class.cast(obj).getKey(), getKey()
);
}
}

Loading…
Cancel
Save