Fixed: Remove unused type parameters (OFBIZ-10909)
No functional change. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857087 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -87,11 +87,11 @@ public abstract class GenericTestCaseBase extends TestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public static <T> void assertNotEquals(Object wanted, Object got) {
|
||||
public static void assertNotEquals(Object wanted, Object got) {
|
||||
assertNotEquals(null, wanted, got);
|
||||
}
|
||||
|
||||
public static <T> void assertNotEquals(String msg, Object wanted, Object got) {
|
||||
public static void assertNotEquals(String msg, Object wanted, Object got) {
|
||||
if (wanted == null) {
|
||||
if (got != null) {
|
||||
return;
|
||||
@@ -223,7 +223,7 @@ OUTER:
|
||||
}
|
||||
}
|
||||
|
||||
private static <T> void assertEqualsArrayArray(String msg, Object wanted, Object got) {
|
||||
private static void assertEqualsArrayArray(String msg, Object wanted, Object got) {
|
||||
int i = 0;
|
||||
while (i < Array.getLength(wanted) && i < Array.getLength(got)) {
|
||||
Object left = Array.get(wanted, i);
|
||||
|
||||
+8
-8
@@ -38,11 +38,11 @@ import org.apache.ofbiz.base.util.cache.UtilCache;
|
||||
public class UtilCacheTests extends GenericTestCaseBase implements Serializable {
|
||||
public static final String module = UtilCacheTests.class.getName();
|
||||
|
||||
protected static abstract class Change<V> {
|
||||
protected static abstract class Change {
|
||||
protected int count = 1;
|
||||
}
|
||||
|
||||
protected static final class Removal<V> extends Change<V> {
|
||||
protected static final class Removal<V> extends Change {
|
||||
private final V oldValue;
|
||||
|
||||
protected Removal(V oldValue) {
|
||||
@@ -64,7 +64,7 @@ public class UtilCacheTests extends GenericTestCaseBase implements Serializable
|
||||
}
|
||||
}
|
||||
|
||||
protected static final class Addition<V> extends Change<V> {
|
||||
protected static final class Addition<V> extends Change {
|
||||
private final V newValue;
|
||||
|
||||
protected Addition(V newValue) {
|
||||
@@ -86,7 +86,7 @@ public class UtilCacheTests extends GenericTestCaseBase implements Serializable
|
||||
}
|
||||
}
|
||||
|
||||
protected static final class Update<V> extends Change<V> {
|
||||
protected static final class Update<V> extends Change {
|
||||
private final V newValue;
|
||||
private final V oldValue;
|
||||
|
||||
@@ -114,15 +114,15 @@ public class UtilCacheTests extends GenericTestCaseBase implements Serializable
|
||||
}
|
||||
|
||||
protected static class Listener<K, V> implements CacheListener<K, V> {
|
||||
protected Map<K, Set<Change<V>>> changeMap = new HashMap<>();
|
||||
protected Map<K, Set<Change>> changeMap = new HashMap<>();
|
||||
|
||||
private void add(K key, Change<V> change) {
|
||||
Set<Change<V>> changeSet = changeMap.get(key);
|
||||
private void add(K key, Change change) {
|
||||
Set<Change> changeSet = changeMap.get(key);
|
||||
if (changeSet == null) {
|
||||
changeSet = new HashSet<>();
|
||||
changeMap.put(key, changeSet);
|
||||
}
|
||||
for (Change<V> checkChange: changeSet) {
|
||||
for (Change checkChange: changeSet) {
|
||||
if (checkChange.equals(change)) {
|
||||
checkChange.count++;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user