api: initialize vars in constructor of StaticRoleBasedAPIAccessChecker 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/21466871 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/21466871 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/21466871 Branch: refs/heads/api_refactoring Commit: 214668711229e8b2c79e8373604be488c69f7552 Parents: 503082a Author: Rohit Yadav <[email protected]> Authored: Mon Dec 10 17:28:06 2012 -0800 Committer: Rohit Yadav <[email protected]> Committed: Mon Dec 10 17:28:06 2012 -0800 ---------------------------------------------------------------------- .../cloud/acl/StaticRoleBasedAPIAccessChecker.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/21466871/server/src/com/cloud/acl/StaticRoleBasedAPIAccessChecker.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/acl/StaticRoleBasedAPIAccessChecker.java b/server/src/com/cloud/acl/StaticRoleBasedAPIAccessChecker.java index 923eff8..cff098a 100644 --- a/server/src/com/cloud/acl/StaticRoleBasedAPIAccessChecker.java +++ b/server/src/com/cloud/acl/StaticRoleBasedAPIAccessChecker.java @@ -64,7 +64,8 @@ public class StaticRoleBasedAPIAccessChecker extends AdapterBase implements APIA protected @Inject AccountManager _accountMgr; - static { + protected StaticRoleBasedAPIAccessChecker() { + super(); s_allCommands = new ArrayList<String>(); s_userCommands = new ArrayList<String>(); s_resellerCommands = new ArrayList<String>();
