X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=PolicyEngineClient%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2FpolicyEngine%2FMainClient.java;h=d17f0c64945558a8d5b108f11d16c7e7f3942cc2;hb=4ca818fdfb9b807562166800a086b413593d6894;hp=eb61970417453c3404caec525bdb6c51ce652cbd;hpb=7e547eaa55920dfbc9691eab33bb728395b50cf2;p=policy%2Fengine.git diff --git a/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java b/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java index eb6197041..d17f0c649 100644 --- a/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java +++ b/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/MainClient.java @@ -53,15 +53,15 @@ public class MainClient { PolicyEngine policyEngine; try { policyEngine = new PolicyEngine("config.properties"); - Map configAttributes = new HashMap(); + Map configAttributes = new HashMap<>(); configAttributes.put("java", "java"); configAttributes.put("peach", "Tar"); configAttributes.put("true", "false"); configAttributes.put("small", "testPass"); - Map eventAttributes = new HashMap(); + Map eventAttributes = new HashMap<>(); eventAttributes.put("true", "true"); eventAttributes.put("cpu", "91"); - Map decisionAttributes = new HashMap(); + Map decisionAttributes = new HashMap<>(); decisionAttributes.put("Key", "Value"); // Config Example @@ -102,11 +102,11 @@ public class MainClient { try { System.in.read(); } catch (IOException e) { - // + System.err.println("Exception Occured"+e); } } catch (PolicyEngineException e1) { - e1.printStackTrace(); + System.err.println("Exception Occured"+e1); } }