diff options
author | anushadasari <danush10@in.ibm.com> | 2019-11-18 20:30:59 +0530 |
---|---|---|
committer | anushadasari <danush10@in.ibm.com> | 2019-11-18 20:31:12 +0530 |
commit | 57bbfdd22ed6eba11bdd601298775838413a9dcd (patch) | |
tree | 398b6cc247457025d254cf76a6360ebbf292e2df /cmso-service/src | |
parent | 0a62772f86ed3ed3bffb2ce578f6651a661a6e6b (diff) |
Immediately return this expression
Immediately return this expression instead of assigning it to the temporary variable "json".
Issue-ID: OPTFRA-644
Change-Id: I36b50fb02c608606dbe2d319058221e87e4da9a9
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/service/rs/CmQueryParameters.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmQueryParameters.java b/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmQueryParameters.java index 1e4a46a..9ddb893 100644 --- a/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmQueryParameters.java +++ b/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/CmQueryParameters.java @@ -224,8 +224,7 @@ public class CmQueryParameters { private static DateTime convertDate(String utcDate, String urlName) throws CmsoException {
try {
- DateTime dateTime = ISODateTimeFormat.dateTimeParser().parseDateTime(utcDate);
- return dateTime;
+ return ISODateTimeFormat.dateTimeParser().parseDateTime(utcDate);
}
catch (Exception e) {
throw new CmsoException(Status.BAD_REQUEST, LogMessages.INVALID_DATE_FILTER, urlName, utcDate);
|