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/02 22:49:33 UTC
svn commit: r1076413 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/test/UtilCacheTests.java
Author: mrisaliti
Date: Wed Mar 2 21:49:33 2011
New Revision: 1076413
URL: http://svn.apache.org/viewvc?rev=1076413&view=rev
Log:
Remove some warning in UtilCacheTests (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/test/UtilCacheTests.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/test/UtilCacheTests.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/test/UtilCacheTests.java?rev=1076413&r1=1076412&r2=1076413&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/test/UtilCacheTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/test/UtilCacheTests.java Wed Mar 2 21:49:33 2011
@@ -34,6 +34,7 @@ import org.ofbiz.base.util.UtilObject;
import org.ofbiz.base.util.cache.CacheListener;
import org.ofbiz.base.util.cache.UtilCache;
+@SuppressWarnings("serial")
public class UtilCacheTests extends GenericTestCaseBase implements Serializable {
public static final String module = UtilCacheTests.class.getName();
@@ -55,8 +56,8 @@ public class UtilCacheTests extends Gene
@Override
public boolean equals(Object o) {
- if (o instanceof Removal) {
- Removal other = (Removal) o;
+ if (o instanceof Removal<?>) {
+ Removal<?> other = (Removal<?>) o;
return UtilObject.equalsHelper(oldValue, other.oldValue);
}
return false;
@@ -77,8 +78,8 @@ public class UtilCacheTests extends Gene
@Override
public boolean equals(Object o) {
- if (o instanceof Addition) {
- Addition other = (Addition) o;
+ if (o instanceof Addition<?>) {
+ Addition<?> other = (Addition<?>) o;
return UtilObject.equalsHelper(newValue, other.newValue);
}
return false;
@@ -101,8 +102,8 @@ public class UtilCacheTests extends Gene
@Override
public boolean equals(Object o) {
- if (o instanceof Update) {
- Update other = (Update) o;
+ if (o instanceof Update<?>) {
+ Update<?> other = (Update<?>) o;
if (!UtilObject.equalsHelper(newValue, other.newValue)) {
return false;
}
@@ -144,7 +145,7 @@ public class UtilCacheTests extends Gene
@Override
public boolean equals(Object o) {
- Listener other = (Listener) o;
+ Listener<?, ?> other = (Listener<?, ?>) o;
return changeMap.equals(other.changeMap);
}
}