apache / apache/incubator-seata
class ExtensionDefinition equal methed
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
ExtensionDefinition other = (ExtensionDefinition)obj;
if (!StringUtils.equals(name, other.name)) {
return false;
}
if (!serviceClass.equals(other.serviceClass)) {
return false;
}
if (!order.equals(other.order)) {
return false;
}
**return !scope.equals(other.scope);//bug**
}
Contributor guide
Research direction
Search the repository for the ExtensionDefinition class and inspect its equals(Object) method. Compare the scope comparison with the other fields and check the project's existing tests for equality behavior. Done means equal scope values make equivalent definitions equal, while differing scopes do not.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100