@Override protected boolean willFlightBeChanged(AwbFlt awbFlt) { if (CargoMaxUtil.isHostCarrier(awbFlt.carrier()) && (!Str.equals(awbFlt.alloc, AwbFlt.ALLOC_UU))) return true; return false; }
В целом:
if (condition) return true; return false;
в точности совпадает с:
return condition;
Итак:
return CargoMaxUtil.isHostCarrier(awbFlt.carrier()) && (!Str.equals(awbFlt.alloc, AwbFlt.ALLOC_UU));