Author: doogie
Date: Mon Jun 30 08:40:55 2008
New Revision: 672798
URL:
http://svn.apache.org/viewvc?rev=672798&view=revLog:
More Number.valueOf uses.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=672798&r1=672797&r2=672798&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java Mon Jun 30 08:40:55 2008
@@ -168,7 +168,7 @@
testing.put("testingName", "leaf-#" + node.getString("testingNodeId"));
testing.put("description", "level1 leaf");
testing.put("comments", "No-comments");
- testing.put("testingSize", new Long(10));
+ testing.put("testingSize", Long.valueOf(10));
testing.put("testingDate", now);
newValues.add(testing);
@@ -212,7 +212,7 @@
*/
public void testFindDistinct() throws Exception {
List<EntityExpr> exprList = UtilMisc.toList(
- EntityCondition.makeCondition("testingSize", EntityOperator.EQUALS, new Long(10)),
+ EntityCondition.makeCondition("testingSize", EntityOperator.EQUALS, Long.valueOf(10)),
EntityCondition.makeCondition("comments", EntityOperator.EQUALS, "No-comments"));
EntityConditionList<EntityExpr> condition = EntityCondition.makeCondition(exprList);