minor: change "new Integer" to more efficient "Integer.valueOf"
This commit is contained in:
parent
c943b4f1e4
commit
530082a3c8
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue