From 28fa871eda0b43279cdd281044a2e2fe7059693e Mon Sep 17 00:00:00 2001 From: Geeth Munasinghe Date: Tue, 16 Dec 2014 18:47:50 +0530 Subject: [PATCH] Fixing names of the variable names --- .../policy/mgt/core/config/PolicyConfigurationManager.java | 2 +- .../mgt/core/internal/PolicyManagementServiceComponent.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyConfigurationManager.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyConfigurationManager.java index 97fe7c0796b..957bf952846 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyConfigurationManager.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/config/PolicyConfigurationManager.java @@ -62,7 +62,7 @@ public class PolicyConfigurationManager { } } - public PolicyManagementConfig getDeviceManagementConfig() { + public PolicyManagementConfig getPolicyManagementConfig() { return currentPolicyConfig; } diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementServiceComponent.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementServiceComponent.java index 6698e3373b9..b12455ab763 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementServiceComponent.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/internal/PolicyManagementServiceComponent.java @@ -42,7 +42,7 @@ public class PolicyManagementServiceComponent { try { PolicyConfigurationManager.getInstance().initConfig(); - PolicyManagementConfig config = PolicyConfigurationManager.getInstance().getDeviceManagementConfig(); + PolicyManagementConfig config = PolicyConfigurationManager.getInstance().getPolicyManagementConfig(); DataSourceConfig dsConfig = config.getPolicyManagementRepository().getDataSourceConfig(); PolicyManagementDAOFactory.init(dsConfig);