[POLICY-122] Policy GUI Fixes
[policy/engine.git] / ECOMP-PAP-REST / src / main / java / org / openecomp / policy / pap / xacml / rest / components / ClosedLoopPolicy.java
index c2ab845..1281bd0 100644 (file)
@@ -80,7 +80,7 @@ public class ClosedLoopPolicy extends Policy {
                                }
                                this.policyAdapter.setJsonBody(body);
                        } catch (Exception e) {
-                               e.printStackTrace();
+                               LOGGER.error("Exception Occured"+e);
                        }
 
                        if(policyName.endsWith(".xml")){
@@ -92,7 +92,6 @@ public class ClosedLoopPolicy extends Policy {
 
                } catch (Exception e) {
                        LOGGER.error("Exception Occured while writing Configuration Data"+e);
-                       e.printStackTrace();
                } 
        }
        
@@ -117,7 +116,7 @@ public class ClosedLoopPolicy extends Policy {
        @Override
        public Map<String, String> savePolicies() throws Exception {
                
-               Map<String, String> successMap = new HashMap<String,String>();
+               Map<String, String> successMap = new HashMap<>();
                if(isPolicyExists()){
                        successMap.put("EXISTS", "This Policy already exist on the PAP");
                        return successMap;