aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-service
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-11-06 14:48:42 +0530
committerVikas Varma <vv8305@att.com>2020-01-22 15:28:09 +0000
commitacf8bb31c508954f94d5ccc921b28300b2033f21 (patch)
tree2f3f9f6cadc399f96d0bd2104314bd3d4ca2bb5e /cmso-service
parent368bbe37308f8483aedd214e78ebd01a2f0cb608 (diff)
Remove the declaration of thrown exception
Remove the declaration of thrown exception 'com.fasterxml.jackson.databind.JsonMappingException' which is a subclass of 'java.io.IOException'. Remove the declaration of thrown exception 'org.onap.optf.cmso.common.exceptions.CmsoException', as it cannot be thrown from method's body Issue-ID: OPTFRA-632 Change-Id: If3645e1dbd53161280a192662fdea2ae75569fb5 Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'cmso-service')
-rw-r--r--cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmsoServiceImpl.java4
-rw-r--r--cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CommonServiceImpl.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmsoServiceImpl.java b/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmsoServiceImpl.java
index 8a1633a..70cee66 100644
--- a/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmsoServiceImpl.java
+++ b/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmsoServiceImpl.java
@@ -199,7 +199,7 @@ public class CmsoServiceImpl extends CommonServiceImpl implements CmsoService {
}
private OptimizedScheduleMessage adaptScheduleMessage(CmsoMessage sm)
- throws CmsoException, JsonParseException, JsonMappingException, IOException {
+ throws CmsoException, IOException {
OptimizedScheduleMessage osm = new OptimizedScheduleMessage();
osm.setScheduleId(sm.getScheduleId());
osm.setDomain(sm.getDomain());
@@ -266,7 +266,7 @@ public class CmsoServiceImpl extends CommonServiceImpl implements CmsoService {
}
private Object getRequestFromCallbackData(String node, String value)
- throws CmsoException, JsonParseException, JsonMappingException, IOException {
+ throws CmsoException, IOException {
ObjectMapper om = new ObjectMapper();
JsonNode json = om.readValue(value, JsonNode.class);
JsonNode details = json.get("requestDetails");
diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CommonServiceImpl.java b/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CommonServiceImpl.java
index e4dec7c..1bb4d0a 100644
--- a/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CommonServiceImpl.java
+++ b/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CommonServiceImpl.java
@@ -213,7 +213,7 @@ public class CommonServiceImpl extends BaseSchedulerServiceImpl {
}
private void createChangeManagement(Schedule schedule, OptimizedScheduleMessage scheduleMessage,
- Map<String, List<ElementInfo>> groups) throws CmsoException {
+ Map<String, List<ElementInfo>> groups){
SchedulingData schedulingInfo = scheduleMessage.getSchedulingData();
for (String groupId : groups.keySet()) {
@@ -266,7 +266,7 @@ public class CommonServiceImpl extends BaseSchedulerServiceImpl {
}
private void createChangeManagementImmediate(Schedule schedule, OptimizedScheduleMessage scheduleMessage,
- Map<String, List<ElementInfo>> groups) throws CmsoException, JsonProcessingException {
+ Map<String, List<ElementInfo>> groups){
SchedulingData schedulingInfo = scheduleMessage.getSchedulingData();
for (String groupId : groups.keySet()) {
ChangeManagementGroup cmg = new ChangeManagementGroup();
@@ -324,7 +324,7 @@ public class CommonServiceImpl extends BaseSchedulerServiceImpl {
// Marshall commonData into DB DomainData
// No validation.
//
- private List<DomainData> marshallDomainData(OptimizedScheduleMessage scheduleMessage) throws CmsoException {
+ private List<DomainData> marshallDomainData(OptimizedScheduleMessage scheduleMessage) {
List<NameValue> domainData = scheduleMessage.getCommonData();
List<DomainData> domainDataList = new ArrayList<DomainData>();
for (NameValue nameValue : domainData) {