You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2012/12/11 02:43:55 UTC
[2/6] git commit: api: initialize vars in constructor of
StaticRoleBasedAPIAccessChecker
api: initialize vars in constructor of StaticRoleBasedAPIAccessChecker
Signed-off-by: Rohit Yadav <bh...@apache.org>
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 <bh...@apache.org>
Authored: Mon Dec 10 17:28:06 2012 -0800
Committer: Rohit Yadav <bh...@apache.org>
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>();