IDEMPIERE-308 Performance: Replace with StringBuilder / fix a problem found with StringBuilder(int)
This commit is contained in:
parent
80d9c6bda3
commit
b65f9deeb9
|
@ -224,7 +224,7 @@ public class ExpenseTypesFromAccounts extends SvrProcess {
|
|||
}
|
||||
}
|
||||
|
||||
StringBuilder returnStr = new StringBuilder(addCount).append(" products added.");
|
||||
StringBuilder returnStr = new StringBuilder().append(addCount).append(" products added.");
|
||||
if (skipCount>0) returnStr.append(" ").append(skipCount).append(" products skipped.");
|
||||
return(returnStr.toString());
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ public class ProductionCreate extends SvrProcess {
|
|||
|
||||
m_production.setIsCreated("Y");
|
||||
m_production.save(get_TrxName());
|
||||
StringBuilder msgreturn = new StringBuilder(created).append(" production lines were created");
|
||||
StringBuilder msgreturn = new StringBuilder().append(created).append(" production lines were created");
|
||||
return msgreturn.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ public class ProductionProcess extends SvrProcess {
|
|||
m_production.setProcessed(true);
|
||||
|
||||
m_production.saveEx(get_TrxName());
|
||||
StringBuilder msgreturn = new StringBuilder(processed).append(" production lines were processed");
|
||||
StringBuilder msgreturn = new StringBuilder().append(processed).append(" production lines were processed");
|
||||
return msgreturn.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ public class UniversalSubstitution extends SvrProcess {
|
|||
bom.saveEx();
|
||||
count++;
|
||||
}
|
||||
StringBuilder msgreturn = new StringBuilder(count).append(" BOM products updated");
|
||||
StringBuilder msgreturn = new StringBuilder().append(count).append(" BOM products updated");
|
||||
return msgreturn.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ public class ModelInterfaceGenerator
|
|||
if (tableName == null)
|
||||
throw new RuntimeException("TableName not found for ID=" + AD_Table_ID);
|
||||
//
|
||||
StringBuilder accessLevelInfo = new StringBuilder(accessLevel).append(" ");
|
||||
StringBuilder accessLevelInfo = new StringBuilder().append(accessLevel).append(" ");
|
||||
if (accessLevel >= 4 )
|
||||
accessLevelInfo.append("- System ");
|
||||
if (accessLevel == 2 || accessLevel == 3 || accessLevel == 6 || accessLevel == 7)
|
||||
|
|
Loading…
Reference in New Issue