If a method’s return type is int and if it return’s -1 what does it actually mean?
public int handle_get_multi_leg_net_quote(Message mmsg) throws Exception {
if (null != t) {
return 1;
}
return -1;
}
It appears to be a code written in another language, maybe it was supposed to be a boolean or even another type of data. One thing you could do is understand what it does in the other language before adapt it to Java.