We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ea5f81 commit f219680Copy full SHA for f219680
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/DefaultSubscriptionRegistry.java
@@ -497,6 +497,23 @@ public Expression getSelectorExpression() {
497
return this.selectorExpression;
498
}
499
500
+ @Override
501
+ public boolean equals(Object other) {
502
+ if (this == other) {
503
+ return true;
504
+ }
505
+ if (other == null || getClass() != other.getClass()) {
506
+ return false;
507
508
+ return getId().equals(((Subscription) other).getId());
509
+
510
511
512
513
+ public int hashCode() {
514
+ return getId().hashCode();
515
516
517
@Override
518
public String toString() {
519
return "subscription(id=" + this.id + ")";
0 commit comments