diff options
author | ezhil <ezhrajam@in.ibm.com> | 2018-12-12 22:37:23 +0530 |
---|---|---|
committer | ezhil <ezhrajam@in.ibm.com> | 2018-12-12 22:37:37 +0530 |
commit | ff0fba27807f2da625b407cc13638ffd25eacead (patch) | |
tree | 95ec1add195b342e272dd583d71e3384f9ccb43b /ms/neng/src | |
parent | 9321f6dea8f57f3e1b9a05c446e59d243f94bfc5 (diff) |
Fixed sonar issues in PropertyOperator.java
Logged exception
Issue-ID: CCSDK-817
Change-Id: I902428f3a7fcf043c29db630783ab9c08d9cc6f2
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'ms/neng/src')
-rw-r--r-- | ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperator.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperator.java index 2a73a27e..7ae27d2d 100644 --- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperator.java +++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PropertyOperator.java @@ -3,6 +3,7 @@ * ONAP : CCSDK.apps * ================================================================================ * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2018 IBM. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,11 +25,13 @@ import static org.onap.ccsdk.apps.ms.neng.core.policy.PolicyReader.propertyOpera import java.lang.reflect.Method; import java.util.Map; +import java.util.logging.Logger; /** * Applies property operations while processing a policy. */ public class PropertyOperator { + private static Logger logger = Logger.getLogger(PropertyOperator.class.getName()); /** * Apply a property found in the policy. * @@ -117,7 +120,7 @@ public class PropertyOperator { } } } catch (Exception e) { - e.printStackTrace(); + logger.warning(e.getMessage()); throw e; } return postOp; |