Skip to content

Commit e97e65b

Browse files
committed
findbugs: toArray of the right type, not Object[]
1 parent 6b7f91d commit e97e65b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/api/dispatch/ParamProcessWorker.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private void doAccessChecks(final BaseCmd cmd, final Map<Object, AccessType> ent
260260

261261
if (!entitiesToOperate.isEmpty()) {
262262
_accountMgr.checkAccess(caller, AccessType.OperateEntry, false, apiName,
263-
(ControlledEntity[]) entitiesToOperate.toArray());
263+
entitiesToOperate.toArray(new ControlledEntity[entitiesToOperate.size()]));
264264
}
265265

266266
}

0 commit comments

Comments
 (0)