From 57bbfdd22ed6eba11bdd601298775838413a9dcd Mon Sep 17 00:00:00 2001 From: anushadasari Date: Mon, 18 Nov 2019 20:30:59 +0530 Subject: 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 --- .../src/main/java/org/onap/optf/cmso/service/rs/CmQueryParameters.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmso-service/src/main') 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); -- cgit 1.2.3-korg