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 f1133a8 commit ba0484fCopy full SHA for ba0484f
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/DefaultSubscriptionRegistry.java
@@ -499,6 +499,23 @@ public Expression getSelectorExpression() {
499
return this.selectorExpression;
500
}
501
502
+ @Override
503
+ public boolean equals(Object other) {
504
+ if (this == other) {
505
+ return true;
506
+ }
507
+ if (other == null || getClass() != other.getClass()) {
508
+ return false;
509
510
+ return getId().equals(((Subscription) other).getId());
511
+
512
513
514
515
+ public int hashCode() {
516
+ return getId().hashCode();
517
518
519
@Override
520
public String toString() {
521
return "subscription(id=" + this.id + ")";
0 commit comments