diff options
author | 2024-05-03 14:55:32 +0000 | |
---|---|---|
committer | 2024-05-03 14:55:32 +0000 | |
commit | af6c06cf3cc3e5e746c232bd8175ea3b2e19c698 (patch) | |
tree | 93bddb8421e892e656bf23f3abb8814ee42086b5 /cps-rest | |
parent | 94751d85222a299fa7e70675064c2cd5954eece3 (diff) | |
parent | e834c9345da1819613044c423d6cd3a096aad55e (diff) |
Merge "[BUG] Correctly parse observedTimestamp"
Diffstat (limited to 'cps-rest')
-rw-r--r-- | cps-rest/src/test/java/org/onap/cps/utils/DateTimeUtility.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cps-rest/src/test/java/org/onap/cps/utils/DateTimeUtility.java b/cps-rest/src/test/java/org/onap/cps/utils/DateTimeUtility.java index f8d709647c..af0efe2e21 100644 --- a/cps-rest/src/test/java/org/onap/cps/utils/DateTimeUtility.java +++ b/cps-rest/src/test/java/org/onap/cps/utils/DateTimeUtility.java @@ -30,11 +30,11 @@ public interface DateTimeUtility { DateTimeFormatter ISO_TIMESTAMP_FORMATTER = DateTimeFormatter.ofPattern(ISO_TIMESTAMP_PATTERN); static OffsetDateTime toOffsetDateTime(String datetTimestampAsString) { - return ! StringUtils.hasLength(datetTimestampAsString) - ? null : OffsetDateTime.parse(datetTimestampAsString, ISO_TIMESTAMP_FORMATTER); + return !StringUtils.hasLength(datetTimestampAsString) ? null + : OffsetDateTime.parse(datetTimestampAsString, ISO_TIMESTAMP_FORMATTER); } static String toString(OffsetDateTime offsetDateTime) { return offsetDateTime != null ? ISO_TIMESTAMP_FORMATTER.format(offsetDateTime) : null; } -} +}
\ No newline at end of file |