From 6a88ee7a839672393a2d70d96c12370001185978 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Fri, 21 Nov 2008 16:58:44 +0000 Subject: [PATCH] do not is necessary the cast --- base/src/org/compiere/model/MReplenish.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/MReplenish.java b/base/src/org/compiere/model/MReplenish.java index 6009098fa1..6c9fe2f87e 100644 --- a/base/src/org/compiere/model/MReplenish.java +++ b/base/src/org/compiere/model/MReplenish.java @@ -73,9 +73,10 @@ public class MReplenish extends X_M_Replenish { */ public static List getForProduct(Properties ctx, int M_ProductID, String trxName) { String whereClause= "M_Product_ID=? AND AD_Client_ID=? AND AD_Org_ID IN (0, ?) "; - return (List) new Query(ctx, Table_Name, whereClause, trxName) + return new Query(ctx, Table_Name, whereClause, trxName) .setParameters(new Object[]{M_ProductID, Env.getAD_Client_ID(ctx), Env.getAD_Org_ID(ctx)}) .setOrderBy("AD_Org_ID") - .setOnlyActiveRecords(true); + .setOnlyActiveRecords(true) + .list(); } }