Bring back this test: WithKeys's constructor begins with iterator().next().getClass() and it's not obvious to me that it can made to elegantly not knowing that class.
This commit is contained in:
@@ -198,8 +198,8 @@ public abstract class DepotRepository
|
|||||||
public <T extends PersistentRecord> List<T> loadAll (Iterable<Key<T>> keys)
|
public <T extends PersistentRecord> List<T> loadAll (Iterable<Key<T>> keys)
|
||||||
throws DatabaseException
|
throws DatabaseException
|
||||||
{
|
{
|
||||||
return _ctx.invoke(new FindAllQuery.WithKeys<T>(_ctx, keys));
|
return Iterables.isEmpty(keys) ? Collections.<T>emptyList() :
|
||||||
}
|
_ctx.invoke(new FindAllQuery.WithKeys<T>(_ctx, keys)); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A varargs version of {@link #findAll(Class,Iterable)}.
|
* A varargs version of {@link #findAll(Class,Iterable)}.
|
||||||
|
|||||||
Reference in New Issue
Block a user