Skip to content

Commit 92858af

Browse files
committed
CID-1192822: ids is a List<Long>, the cast to List<?> is removed
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 2401eb9 commit 92858af

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

server/src/com/cloud/api/query/QueryManagerImpl.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -912,11 +912,8 @@ private Pair<List<UserVmJoinVO>, Integer> searchForUserVMsInternal(ListVMsCmd cm
912912
sc.setParameters("display", display);
913913
}
914914

915-
if (ids != null) {
916-
List<?> idList = (ids instanceof List<?> ? (List<?>)ids : null);
917-
if (idList != null && !idList.isEmpty()) {
918-
sc.setParameters("idIN", idList.toArray());
919-
}
915+
if (ids != null && !ids.isEmpty()) {
916+
sc.setParameters("idIN", ids.toArray());
920917
}
921918

922919
if (templateId != null) {

0 commit comments

Comments
 (0)