From: anushadasari Date: Mon, 18 Nov 2019 15:00:59 +0000 (+0530) Subject: Immediately return this expression X-Git-Tag: 2.2.0~32 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=57bbfdd22ed6eba11bdd601298775838413a9dcd;p=optf%2Fcmso.git 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 --- 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);