minor: change "new Integer" to more efficient "Integer.valueOf"

This commit is contained in:
mjudd 2009-04-14 08:04:59 +00:00
parent c943b4f1e4
commit 530082a3c8
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class MProductTest extends TestCase {
AD_User_ID_Value = Integer.parseInt(testProperties.getProperty(AD_User_ID_Key, AD_User_ID_DefaultValue) );
m_Ctx = new Properties();
m_Ctx.setProperty("#AD_User_ID", new Integer(AD_User_ID_Value).toString());
m_Ctx.setProperty("#AD_User_ID", Integer.valueOf(AD_User_ID_Value).toString());
System.out.println("m_Ctx: " + m_Ctx);
if (fileName_Value.length() < 1) {

View File

@ -82,7 +82,7 @@ public class SingleMProductTest extends TestCase {
public void testMProductCreation() {
boolean singleCommit = true;
String trxName = "test";
m_Ctx.setProperty("#AD_Client_ID", new Integer(11).toString());
m_Ctx.setProperty("#AD_Client_ID", Integer.valueOf(11).toString());
// Start time - 20:16
long startTime = System.currentTimeMillis();