Fix generics.

This commit is contained in:
Ben Alex 2005-08-21 10:31:41 +00:00
parent 9ea795927e
commit c5e060dc09
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ public class EvictionUtils {
* @param collection whose members to evict (never <code>null</code>) * @param collection whose members to evict (never <code>null</code>)
*/ */
public static void evictIfRequired(Object daoOrServices, public static void evictIfRequired(Object daoOrServices,
Collection<Object> collection) { Collection<? extends Object> collection) {
Assert.notNull(collection, "Cannot evict a null Collection"); Assert.notNull(collection, "Cannot evict a null Collection");
if (getEvictionCapable(daoOrServices) == null) { if (getEvictionCapable(daoOrServices) == null) {
@ -104,7 +104,7 @@ public class EvictionUtils {
return; return;
} }
Iterator<Object> iter = collection.iterator(); Iterator<? extends Object> iter = collection.iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
Object obj = iter.next(); Object obj = iter.next();