do not is necessary toString() in object String

This commit is contained in:
vpj-cd 2008-11-03 17:38:26 +00:00
parent ea51559332
commit baa598c901
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ public class MAlert extends X_AD_Alert
return m_rules;
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "AD_Alert_ID=?";
List <MAlertRule> list = new Query(getCtx(), MAlertRule.Table_Name, whereClause.toString(), null)
List <MAlertRule> list = new Query(getCtx(), MAlertRule.Table_Name, whereClause, null)
.setParameters(new Object[]{getAD_Alert_ID()})
.setOrderBy("Name, AD_AlertRule_ID")
.list()
@ -110,7 +110,7 @@ public class MAlert extends X_AD_Alert
return m_recipients;
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
String whereClause = "AD_Alert_ID=?";
List <MAlertRecipient> list = new Query(getCtx(), MAlertRecipient.Table_Name, whereClause.toString(), null)
List <MAlertRecipient> list = new Query(getCtx(), MAlertRecipient.Table_Name, whereClause, null)
.setParameters(new Object[]{getAD_Alert_ID()})
.list()
;