CID-1192822: ids is a List<Long>, the cast to List<?> is removed

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2014-09-25 16:59:47 +02:00
parent 2401eb927b
commit 92858afd55
1 changed files with 2 additions and 5 deletions

View File

@ -912,11 +912,8 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
sc.setParameters("display", display);
}
if (ids != null) {
List<?> idList = (ids instanceof List<?> ? (List<?>)ids : null);
if (idList != null && !idList.isEmpty()) {
sc.setParameters("idIN", idList.toArray());
}
if (ids != null && !ids.isEmpty()) {
sc.setParameters("idIN", ids.toArray());
}
if (templateId != null) {