findbugs: toArray of the right type, not Object[]

This commit is contained in:
Daan Hoogland 2014-04-05 10:14:54 +02:00
parent 6b7f91d770
commit e97e65bff0

View File

@ -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()]));
}
}