mirror of https://github.com/apache/cloudstack.git
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:
parent
2401eb927b
commit
92858afd55
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue