diff options
author | Arindam Mondal <arind.mondal@samsung.com> | 2019-09-02 16:00:18 +0900 |
---|---|---|
committer | Arindam Mondal <arind.mondal@samsung.com> | 2019-09-04 09:52:38 +0000 |
commit | 271e86ceb4140a04190ba0161cce6c85c7dfeb33 (patch) | |
tree | 905083dae2fedce8f216c446c568e43a24a662c6 | |
parent | 687cdacb9fd74629e94ebc0914ba8c72bb5015a5 (diff) |
General sonar fix add logger
Issue-ID: SO-2226
Change-Id: I5a826a9ea75b3065987a274ab7962c4a5fc1d614
Signed-off-by: arind.mondal <arind.mondal@samsung.com>
-rw-r--r-- | common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java b/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java index ad3bb6c311..540472a88d 100644 --- a/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java +++ b/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java @@ -27,6 +27,8 @@ import java.util.List; import java.util.stream.Collectors; import org.onap.so.client.aai.entities.QueryStep; import org.onap.so.client.graphinventory.GraphInventoryObjectName; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import com.google.common.base.Joiner; @@ -34,6 +36,7 @@ public class DSLQueryBuilder<S, E> implements QueryStep { private List<QueryStep> steps = new ArrayList<>(); private String suffix = ""; + private static final Logger logger = LoggerFactory.getLogger(DSLQueryBuilder.class); public DSLQueryBuilder() { @@ -64,6 +67,7 @@ public class DSLQueryBuilder<S, E> implements QueryStep { ((DSLNode) ((DSLQueryBuilder) o).steps.get(0)).output(); } } catch (IllegalArgumentException | IllegalAccessException e) { + logger.error("Exception occured", e); } f.setAccessible(false); break; |