aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThugutla sailakshmi <tsaila10@in.ibm.com>2019-08-29 22:28:45 +0530
committerThugutla sailakshmi <tsaila10@in.ibm.com>2019-08-29 22:33:38 +0530
commit894892a88d08c12f0e77234852b14112e1d66cd6 (patch)
tree082a00ee985f4298f654d25e2c3d05550d97b0ce
parent6aad1c6198726b0e7963db363ea0cfc28e93fcd5 (diff)
sonar fix:remove the declaration of exceptions from method body
sonar fix:remove the declaration of exceptions from method body Issue-ID: MUSIC-463 Change-Id: I3f587a4506f745eafa02a4415e1215fbd9eff8f8 Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
-rw-r--r--src/main/java/org/onap/music/rest/RestMusicLocksAPI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java b/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java
index 35f03e60..5ce0f424 100644
--- a/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java
+++ b/src/main/java/org/onap/music/rest/RestMusicLocksAPI.java
@@ -357,7 +357,7 @@ public class RestMusicLocksAPI {
@ApiParam(value = "Authorization", required = true) @HeaderParam(MusicUtil.AUTHORIZATION) String authorization,
@ApiParam(value = "AID", required = false, hidden = true) @HeaderParam("aid") String aid,
@ApiParam(value = "Application namespace",
- required = false, hidden = true) @HeaderParam("ns") String ns) throws Exception{
+ required = false, hidden = true) @HeaderParam("ns") String ns) {
try {
ResponseBuilder response = MusicUtil.buildVersionResponse(VERSION, minorVersion, patchVersion);
Map<String, Object> resultMap = MusicCore.validateLock(lockName);
@@ -417,7 +417,7 @@ public class RestMusicLocksAPI {
@ApiParam(value = "Authorization", required = true) @HeaderParam(MusicUtil.AUTHORIZATION) String authorization,
@ApiParam(value = "AID", required = false, hidden = true) @HeaderParam("aid") String aid,
@ApiParam(value = "Application namespace",
- required = false, hidden = true) @HeaderParam("ns") String ns) throws Exception{
+ required = false, hidden = true) @HeaderParam("ns") String ns) {
try {
ResponseBuilder response = MusicUtil.buildVersionResponse(VERSION, minorVersion, patchVersion);
Map<String, Object> resultMap = MusicCore.validateLock(lockName);