aboutsummaryrefslogtreecommitdiffstats
path: root/aai-resources
diff options
context:
space:
mode:
authoraishkashyap <as00476394@techmahindra.com>2017-12-20 17:03:41 +0530
committeraishkashyap <as00476394@techmahindra.com>2017-12-20 17:10:39 +0530
commitbcbb2f2f2b72453db932931e6dcc80d0a21aa6cf (patch)
treeb161ecdce17657ad41f4137133bdb5e1ef83f67f /aai-resources
parentbeaf760703985f3fae3de7124af640b20528c57c (diff)
Sonar Critical:To either Log or rethrow exception
To either Log or rethrow exception Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.aai.resources%3Aresources#severities=MINOR%2CCRITICAL|assignees=aishkashyap Location: src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java Line No:352 Change-Id: Idb0cc6eaf9d37355e733a7cd3502d5930ceafa9f Issue-ID: AAI-572 Signed-off-by: aishkashyap <as00476394@techmahindra.com>
Diffstat (limited to 'aai-resources')
-rw-r--r--aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java
index eeaaf6a..52fe859 100644
--- a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java
+++ b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java
@@ -350,8 +350,7 @@ public class ModelVersionTransformer extends RESTAPI {
}
}
} catch (NoSuchElementException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ throw new NoSuchElementException();
} catch (Exception e1) {
e1.printStackTrace();
}