This repository was archived by the owner on May 30, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
sofa-boot-core/src/main/java/com/alipay/sofa/rpc/boot/runtime/binding Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments