diff options
author | Charles Cole <cc847m@att.com> | 2017-09-26 14:43:58 -0500 |
---|---|---|
committer | Charles Cole <cc847m@att.com> | 2017-09-28 11:19:28 -0500 |
commit | 61af63956d0fa9022667c56c8874d83be35c8102 (patch) | |
tree | ba5be7e0c8f573fa38714b4d8389a7c080ace9ce /controlloop/common/simulators/src/main | |
parent | 400ca9b5ebb98c42c0c497d917f3cf139b03888a (diff) |
Fix Sonar criticals
Fixed two Sonar criticals. Changed VFC actor service provider to
eliminate redundant AAI queries.
Issue-ID: POLICY-115
Change-Id: Ic4993b5d498a1cb3d3fc51ce1d2b4e90bb26353d
Signed-off-by: Charles Cole <cc847m@att.com>
Diffstat (limited to 'controlloop/common/simulators/src/main')
-rw-r--r-- | controlloop/common/simulators/src/main/java/org/onap/policy/simulators/VfcSimulatorJaxRs.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/controlloop/common/simulators/src/main/java/org/onap/policy/simulators/VfcSimulatorJaxRs.java b/controlloop/common/simulators/src/main/java/org/onap/policy/simulators/VfcSimulatorJaxRs.java index 53ae7bc4b..0602717c7 100644 --- a/controlloop/common/simulators/src/main/java/org/onap/policy/simulators/VfcSimulatorJaxRs.java +++ b/controlloop/common/simulators/src/main/java/org/onap/policy/simulators/VfcSimulatorJaxRs.java @@ -30,6 +30,9 @@ import javax.servlet.http.HttpServletResponse; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + @Path("/api/nslcm/v1") public class VfcSimulatorJaxRs { @@ -43,7 +46,11 @@ public class VfcSimulatorJaxRs { response.setStatus(HttpServletResponse.SC_ACCEPTED); try { response.flushBuffer(); - }catch(Exception e){} + }catch(Exception e){ + final Logger logger = LoggerFactory.getLogger(VfcSimulatorJaxRs.class); + logger.error("flushBuffer threw: ", e); + return ""; + } return "{\"jobId\":\"1\"}"; } |