IDEMPIERE-455 Discover and fix FindBugs problems / Pattern BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY
This commit is contained in:
parent
1e30b56290
commit
c39cc3b81d
|
@ -472,9 +472,10 @@ public class MProject extends X_C_Project
|
||||||
public MInvoice[] getMInvoices(){
|
public MInvoice[] getMInvoices(){
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(MInvoice.COLUMNNAME_C_Project_ID).append("=?");
|
sb.append(MInvoice.COLUMNNAME_C_Project_ID).append("=?");
|
||||||
Query qry = new Query(getCtx(), MInvoice.Table_Name, sb.toString(), get_TrxName());
|
List<MInvoice> list = new Query(getCtx(), MInvoice.Table_Name, sb.toString(), get_TrxName())
|
||||||
qry.setParameters(getC_Project_ID());
|
.setParameters(getC_Project_ID())
|
||||||
return (MInvoice[]) qry.list().toArray();
|
.list();
|
||||||
|
return list.toArray(new MInvoice[list.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // MProject
|
} // MProject
|
||||||
|
|
Loading…
Reference in New Issue