mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
findbugs: toArray of the right type, not Object[]
This commit is contained in:
parent
6b7f91d770
commit
e97e65bff0
@ -260,7 +260,7 @@ public class ParamProcessWorker implements DispatchWorker {
|
||||
|
||||
if (!entitiesToOperate.isEmpty()) {
|
||||
_accountMgr.checkAccess(caller, AccessType.OperateEntry, false, apiName,
|
||||
(ControlledEntity[]) entitiesToOperate.toArray());
|
||||
entitiesToOperate.toArray(new ControlledEntity[entitiesToOperate.size()]));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user