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:11:21 UTC

svn commit: r1076830 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilObjectTests.java

Author: mrisaliti
Date: Thu Mar  3 22:11:21 2011
New Revision: 1076830

URL: http://svn.apache.org/viewvc?rev=1076830&view=rev
Log:
Remove some warning in UtilObjectTests (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilObjectTests.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilObjectTests.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilObjectTests.java?rev=1076830&r1=1076829&r2=1076830&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilObjectTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilObjectTests.java Thu Mar  3 22:11:21 2011
@@ -181,6 +181,7 @@ public class UtilObjectTests extends Gen
         }
     }
 
+    @SuppressWarnings("serial")
     public static class SerializationInjector implements Serializable {
         private boolean onRead;
         private boolean onWrite;
@@ -264,9 +265,9 @@ public class UtilObjectTests extends Gen
         assertFalse("null == a", UtilObject.equalsHelper(null, this));
         assertFalse("a == null", UtilObject.equalsHelper(this, null));
         assertTrue("null == null", UtilObject.equalsHelper(null, null));
-        assertTrue("map == map", UtilObject.equalsHelper(new HashMap(), new HashMap()));
-        assertFalse("map == this", UtilObject.equalsHelper(new HashMap(), this));
-        assertFalse("this == map", UtilObject.equalsHelper(this, new HashMap()));
+        assertTrue("map == map", UtilObject.equalsHelper(new HashMap<String, Object>(), new HashMap<String, Object>()));
+        assertFalse("map == this", UtilObject.equalsHelper(new HashMap<String, Object>(), this));
+        assertFalse("this == map", UtilObject.equalsHelper(this, new HashMap<String, Object>()));
     }
 
     public void testCompareToHelper() {