Commit 094e200c authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

rpc: include program version number in hashCode calculation of OncRpcProgram

javadoc update
parent 799ab215
......@@ -52,9 +52,14 @@ public class OncRpcProgram {
return _version;
}
/**
* Construct a new OncRpcProgram for with a given program number and version.
* @param number
* @param version
*/
public OncRpcProgram(int number, int version) {
this._number = number;
this._version = version;
_number = number;
_version = version;
}
@Override
......@@ -72,7 +77,7 @@ public class OncRpcProgram {
@Override
public int hashCode() {
return _number;
return _number ^ _version;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment