You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/03/03 23:15:32 UTC
svn commit: r1076835 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/json/test/JSONTests.java
Author: mrisaliti
Date: Thu Mar 3 22:15:32 2011
New Revision: 1076835
URL: http://svn.apache.org/viewvc?rev=1076835&view=rev
Log:
Remove some warning in JSONTests (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/json/test/JSONTests.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/json/test/JSONTests.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/json/test/JSONTests.java?rev=1076835&r1=1076834&r2=1076835&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/json/test/JSONTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/json/test/JSONTests.java Thu Mar 3 22:15:32 2011
@@ -233,9 +233,9 @@ public class JSONTests extends GenericTe
"nested string",
"something",
}),
- "empty-list", new ArrayList(),
+ "empty-list", new ArrayList<String>(),
"empty-array", new String[0],
- "empty-map", new HashMap(),
+ "empty-map", new HashMap<String, Object>(),
}),
parseJSON("{\"string\": \"this is a string\", \"integer\": 5000, \"double\": 3.1415926, \"array\": [\"string\", 6000], \"list\": [\"nested string\", \"something\"], \"empty-list\": [], \"empty-array\": [], \"empty-map\": {}}", false)
);