zrlw commented on issue #15632:
URL: https://github.com/apache/dubbo/issues/15632#issuecomment-3190382594
by the way, these codes at ```DefaultServiceInstance#equals``` should be
optimized like this
```
@Override
public boolean equals(Object o) {
...
for (Map.Entry<String, String> entry :
this.getMetadata().entrySet()) {
...
if (entry.getValue() == null) {
if (null != that.getMetadata().get(entry.getKey())) {
return false;
}
} else {
if
(!entry.getValue().equals(that.getMetadata().get(entry.getKey())) {
return false;
}
}
}
return true;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]