Repository: stratos Updated Branches: refs/heads/master ecaa8d302 -> 68bf130a7
Removing unused validations for application Policy ID Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/68bf130a Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/68bf130a Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/68bf130a Branch: refs/heads/master Commit: 68bf130a7babe51bba3a548654430f446321d3e3 Parents: ecaa8d3 Author: lasinducharith <[email protected]> Authored: Fri Jun 19 12:41:32 2015 +0530 Committer: lasinducharith <[email protected]> Committed: Fri Jun 19 12:41:32 2015 +0530 ---------------------------------------------------------------------- .../stratos/rest/endpoint/api/StratosApiV41Utils.java | 12 ------------ 1 file changed, 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/68bf130a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java index 2830b4d..41a6fd7 100644 --- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java +++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java @@ -1667,18 +1667,6 @@ public class StratosApiV41Utils { throw new RestAPIException(message); } - if (StringUtils.isEmpty(applicationPolicyId)) { - String message = "Application policy id is Empty"; - log.error(message); - throw new RestAPIException(message); - } - if (StringUtils.isEmpty(applicationPolicyId)) { - String message = String.format("Application policy id cannot be null : [application-policy-id] %s. " - + "Are you passing application policy?", applicationPolicyId); - log.error(message); - throw new RestAPIException(message); - } - try { if (log.isInfoEnabled()) { log.info(String.format("Starting to deploy application: [application-id] %s", applicationId));
