ApiDiscoveryServiceImpl: Fix fields variable definition from array to set Signed-off-by: Rohit Yadav <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/34f3e1c9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/34f3e1c9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/34f3e1c9 Branch: refs/heads/javelin Commit: 34f3e1c9a1ec07c9fbb34105732a9a431eb13910 Parents: a8623ba Author: Rohit Yadav <[email protected]> Authored: Wed Jan 23 13:52:12 2013 -0800 Committer: Rohit Yadav <[email protected]> Committed: Wed Jan 23 14:57:41 2013 -0800 ---------------------------------------------------------------------- .../discovery/ApiDiscoveryServiceImpl.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/34f3e1c9/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java ---------------------------------------------------------------------- diff --git a/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java b/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java index 5ac2281..bfd2719 100644 --- a/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java +++ b/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java @@ -107,7 +107,7 @@ public class ApiDiscoveryServiceImpl implements ApiDiscoveryService { } } - Field[] fields = ReflectUtil.getAllFieldsForClass(cmdClass, + Set<Field> fields = ReflectUtil.getAllFieldsForClass(cmdClass, new Class<?>[]{BaseCmd.class, BaseAsyncCmd.class, BaseAsyncCreateCmd.class}); boolean isAsync = ReflectUtil.isCmdClassAsync(cmdClass,
