Github user nlivens commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/801#discussion_r43093369 --- Diff: plugins/network-elements/nuage-vsp/src/com/cloud/agent/api/manager/SupportedApiVersionCommand.java --- @@ -17,38 +17,42 @@ // under the License. // -package com.cloud.agent.api.guru; +package com.cloud.agent.api.manager; import com.cloud.agent.api.Command; -public class ReleaseVmVspCommand extends Command { +public class SupportedApiVersionCommand extends Command { - String _networkUuid; - String _vmUuid; - String _vmInstanceName; + private final String _apiVersion; - public ReleaseVmVspCommand(String networkUuid, String vmUuid, String vmInstanceName) { + public SupportedApiVersionCommand(String apiVersion) { super(); - this._networkUuid = networkUuid; - this._vmUuid = vmUuid; - this._vmInstanceName = vmInstanceName; + this._apiVersion = apiVersion; } - public String getNetworkUuid() { - return _networkUuid; + public String getApiVersion() { + return _apiVersion; } - public String getVmUuid() { - return _vmUuid; + @Override + public boolean executeInSequence() { + return false; } - public String getVmInstanceName() { - return _vmInstanceName; + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + SupportedApiVersionCommand that = (SupportedApiVersionCommand) o; + + if (_apiVersion != null ? !_apiVersion.equals(that._apiVersion) : that._apiVersion != null) return false; + + return true; } @Override - public boolean executeInSequence() { - return false; + public int hashCode() { --- End diff -- Implemented <code>hashCode</code> method for the <code>Command</code> super class, calling it from subclass.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---