Issue: SPR-15229
@ -497,6 +497,23 @@ public class DefaultSubscriptionRegistry extends AbstractSubscriptionRegistry {
return this.selectorExpression;
}
@Override
public boolean equals(Object other) {
if (this == other) {
return true;
if (other == null || getClass() != other.getClass()) {
return false;
return getId().equals(((Subscription) other).getId());
public int hashCode() {
return getId().hashCode();
public String toString() {
return "subscription(id=" + this.id + ")";