Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Fix remove service, do not use consumerconfig as hashcode key (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
leizhiyuan authored and ujjboy committed Sep 10, 2019
1 parent 78d8afe commit 499f0e4
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public int getBindingHashCode() {

/**
* 健康检查
*
* @return 健康检查结果
*/
@Override
Expand Down Expand Up @@ -237,21 +238,16 @@ public boolean equals(Object object) {
if (rpcBindingParam != null ? !rpcBindingParam.equals(that.rpcBindingParam) : that.rpcBindingParam != null) {
return false;
}
if (applicationContext != null ? !applicationContext.equals(that.applicationContext)
: that.applicationContext != null) {
return false;
}
return consumerConfig != null ? consumerConfig.equals(that.consumerConfig) : that.consumerConfig == null;

return true;
}

@Override
public int hashCode() {
int result = appName != null ? appName.hashCode() : 0;
result = 31 * result + (beanId != null ? beanId.hashCode() : 0);
result = 31 * result + (rpcBindingParam != null ? rpcBindingParam.hashCode() : 0);
result = 31 * result + (applicationContext != null ? applicationContext.hashCode() : 0);
result = 31 * result + (inBinding ? 1 : 0);
result = 31 * result + (consumerConfig != null ? consumerConfig.hashCode() : 0);
return result;
}
}

0 comments on commit 499f0e4

Please sign in to comment.