Reputation: 317
@Override
protected boolean willFlightBeChanged(AwbFlt awbFlt) {
if (CargoMaxUtil.isHostCarrier(awbFlt.carrier()) && (!Str.equals(awbFlt.alloc, AwbFlt.ALLOC_UU)))
return true;
return false;
}
Upvotes: 1
Views: 68
Reputation: 140329
In general:
if (condition)
return true;
return false;
is exactly the same as:
return condition;
So:
return CargoMaxUtil.isHostCarrier(awbFlt.carrier()) && (!Str.equals(awbFlt.alloc, AwbFlt.ALLOC_UU));
Upvotes: 1