in java/ws-messages/src/main/java/com/epam/deltix/tbwg/messages/SecurityStatusMessage.java [211:246]
public boolean equals(Object obj) {
if (this == obj) return true;
boolean superEquals = super.equals(obj);
if (!superEquals) return false;
if (!(obj instanceof SecurityStatusMessage)) return false;
SecurityStatusMessage other =(SecurityStatusMessage)obj;
if (hasCause() != other.hasCause()) return false;
if (hasCause()) {
if (getCause().length() != other.getCause().length()) return false; else {
CharSequence s1 = getCause();
CharSequence s2 = other.getCause();
if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
if (!s1.equals(s2)) return false;
} else {
for (int i = 0; i < s1.length(); ++i) if (s1.charAt(i) != s2.charAt(i)) return false;
}
}
}
if (hasExchangeId() != other.hasExchangeId()) return false;
if (hasExchangeId() && getExchangeId() != other.getExchangeId()) return false;
if (hasOriginalStatus() != other.hasOriginalStatus()) return false;
if (hasOriginalStatus()) {
if (getOriginalStatus().length() != other.getOriginalStatus().length()) return false; else {
CharSequence s1 = getOriginalStatus();
CharSequence s2 = other.getOriginalStatus();
if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
if (!s1.equals(s2)) return false;
} else {
for (int i = 0; i < s1.length(); ++i) if (s1.charAt(i) != s2.charAt(i)) return false;
}
}
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus() && getStatus() != other.getStatus()) return false;
return true;
}