summaryrefslogtreecommitdiffstats
path: root/cmso-optimizer
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-11-06 14:41:03 +0530
committerVikas Varma <vv8305@att.com>2020-01-22 15:13:48 +0000
commit368bbe37308f8483aedd214e78ebd01a2f0cb608 (patch)
tree7d7f770732b6068b8b47f9ee687a46df35e09907 /cmso-optimizer
parent4504d02f860b740a17a3d72c19ef5d04803896e6 (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'. Issue-ID: OPTFRA-632 Change-Id: I63ff85db68f0247573f9a6202feb2cb7849176c3 Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'cmso-optimizer')
-rw-r--r--cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/OptimizerClient.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/OptimizerClient.java b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/OptimizerClient.java
index 88570e8..2c03034 100644
--- a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/OptimizerClient.java
+++ b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/optimizer/OptimizerClient.java
@@ -170,33 +170,28 @@ public class OptimizerClient {
return list;
}
- private ActiveTicketsResponse getTicketResponse(UUID uuid)
- throws JsonParseException, JsonMappingException, IOException {
+ private ActiveTicketsResponse getTicketResponse(UUID uuid) throws IOException {
Ticket ticketRow = ticketMgtRequestManager.getExistingTickets(uuid);
String ticketString = ticketRow.getTickets();
ObjectMapper om = new ObjectMapper();
return om.readValue(ticketString, ActiveTicketsResponse.class);
}
- private TopologyResponse getTopologyResponse(UUID uuid)
- throws JsonParseException, JsonMappingException, IOException {
+ private TopologyResponse getTopologyResponse(UUID uuid) throws IOException {
Topology topologyRow = topologyRequestManager.getExistingTopology(uuid);
String topologyString = topologyRow.getTopology();
ObjectMapper om = new ObjectMapper();
return om.readValue(topologyString, TopologyResponse.class);
}
- private OptimizerRequest getOptimizerRequest(Request request)
- throws JsonParseException, JsonMappingException, IOException {
+ private OptimizerRequest getOptimizerRequest(Request request) throws IOException {
String requestString = request.getRequest();
ObjectMapper om = new ObjectMapper();
return om.readValue(requestString, OptimizerRequest.class);
}
- private OptimizerEngineResponse initiateOptimizer(OptimizerParameters request, Request requestRow)
- throws CmsoException, JsonProcessingException {
-
+ private OptimizerEngineResponse initiateOptimizer(OptimizerParameters request, Request requestRow) {
UUID uuid = requestRow.getUuid();
OptimizerEngineResponse apiResponse = new OptimizerEngineResponse();