aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-service/src
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-11-19 11:42:43 +0530
committeranushadasari <danush10@in.ibm.com>2019-11-19 11:42:55 +0530
commitf8b8f64ca2c06ef9660bfcc77ca2d58e52612c41 (patch)
tree3a7d921f0d9b050733699ac570316c2ca785e424 /cmso-service/src
parent5128622fb4958005eb8eaae80990edfd4191a496 (diff)
Immediately return this expression
Immediately return this expression instead of assigning it to the temporary variable "json". Issue-ID: OPTFRA-644 Change-Id: Ief8d222a51cb640df6d8b95a87aae9283e700656 Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'cmso-service/src')
-rw-r--r--cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java b/cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java
index 84ff91e..3cf9194 100644
--- a/cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java
+++ b/cmso-service/src/main/java/org/onap/optf/cmso/dispatcher/rs/DispatcherServiceImpl.java
@@ -119,8 +119,7 @@ public class DispatcherServiceImpl implements DispacherService {
errors.error(LogMessages.UNEXPECTED_EXCEPTION, e.getMessage());
debug.error(e.getMessage(), e);
}
- Response response = Response.ok().build();
- return response;
+ return Response.ok().build();
}
}