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

Commit 499f0e4

Browse files
leizhiyuanujjboy
authored andcommitted
Fix remove service, do not use consumerconfig as hashcode key (#200)
1 parent 78d8afe commit 499f0e4

File tree

1 file changed

+3
-7
lines changed
  • sofa-boot-core/src/main/java/com/alipay/sofa/rpc/boot/runtime/binding

1 file changed

+3
-7
lines changed

sofa-boot-core/src/main/java/com/alipay/sofa/rpc/boot/runtime/binding/RpcBinding.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public int getBindingHashCode() {
8585

8686
/**
8787
* 健康检查
88+
*
8889
* @return 健康检查结果
8990
*/
9091
@Override
@@ -237,21 +238,16 @@ public boolean equals(Object object) {
237238
if (rpcBindingParam != null ? !rpcBindingParam.equals(that.rpcBindingParam) : that.rpcBindingParam != null) {
238239
return false;
239240
}
240-
if (applicationContext != null ? !applicationContext.equals(that.applicationContext)
241-
: that.applicationContext != null) {
242-
return false;
243-
}
244-
return consumerConfig != null ? consumerConfig.equals(that.consumerConfig) : that.consumerConfig == null;
241+
242+
return true;
245243
}
246244

247245
@Override
248246
public int hashCode() {
249247
int result = appName != null ? appName.hashCode() : 0;
250248
result = 31 * result + (beanId != null ? beanId.hashCode() : 0);
251249
result = 31 * result + (rpcBindingParam != null ? rpcBindingParam.hashCode() : 0);
252-
result = 31 * result + (applicationContext != null ? applicationContext.hashCode() : 0);
253250
result = 31 * result + (inBinding ? 1 : 0);
254-
result = 31 * result + (consumerConfig != null ? consumerConfig.hashCode() : 0);
255251
return result;
256252
}
257253
}

0 commit comments

Comments
 (0)