Updates equals() for events.
Fixes gh-3918
This commit is contained in:
@@ -74,8 +74,9 @@ public class EurekaInstanceCanceledEvent extends ApplicationEvent {
|
||||
return false;
|
||||
}
|
||||
EurekaInstanceCanceledEvent that = (EurekaInstanceCanceledEvent) o;
|
||||
return Objects.equals(appName, that.appName)
|
||||
&& Objects.equals(serverId, that.serverId) && replication == replication;
|
||||
return this.replication == that.replication
|
||||
&& Objects.equals(this.appName, that.appName)
|
||||
&& Objects.equals(this.serverId, that.serverId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -76,8 +76,9 @@ public class EurekaInstanceRegisteredEvent extends ApplicationEvent {
|
||||
return false;
|
||||
}
|
||||
EurekaInstanceRegisteredEvent that = (EurekaInstanceRegisteredEvent) o;
|
||||
return Objects.equals(instanceInfo, that.instanceInfo)
|
||||
&& leaseDuration == leaseDuration && replication == replication;
|
||||
return this.leaseDuration == that.leaseDuration
|
||||
&& this.replication == that.replication
|
||||
&& Objects.equals(this.instanceInfo, that.instanceInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user