MFreightCategory: not touching the style but at least using optimum code

This commit is contained in:
teo_sarca 2008-11-24 14:50:34 +00:00
parent 1437b52f11
commit 15601d7f2b
1 changed files with 1 additions and 7 deletions

View File

@ -77,13 +77,7 @@ public class MFreightCategory extends X_M_FreightCategory {
Query q = new Query(ctx, MFreightCategory.Table_Name, "Value=? AND AD_Client_ID=?", trxName);
q.setParameters(new Object[]{value, Env.getAD_Client_ID(ctx)});
List<MFreightCategory> list = q.list();
if (list.size()>0) {
return(list.get(0));
} else {
return(null);
}
return q.first();
}
}