From: Robert Varga Date: Sat, 30 Nov 2024 21:48:01 +0000 (+0100) Subject: Fixup checkstyle X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=cab1775d2dc41329b1ab6f9afe6dcefa6b3da024;p=netconf.git Fixup checkstyle Upgraded checkstyle is finding new violations, fix them up. Change-Id: I0844f56c3c605cc26455bf6a69c044ad46e7d3b4 Signed-off-by: Robert Varga --- diff --git a/protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/messages/NotificationMessage.java b/protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/messages/NotificationMessage.java index 802f12c04e..ed25c4291a 100644 --- a/protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/messages/NotificationMessage.java +++ b/protocol/netconf-api/src/main/java/org/opendaylight/netconf/api/messages/NotificationMessage.java @@ -60,16 +60,12 @@ public final class NotificationMessage extends NetconfMessage { DATE_TIME_FORMATTER.format(date.atOffset(ZoneOffset.UTC)); /** - * Parse a {@link String} object into a {@link Instant} using the time-zone - * offset for UTC, {@code ZoneOffset.UTC}, and the system default time-zone, - * {@code ZoneId.systemDefault()}. - *

- * While parsing, if an exception occurs, we try to handle it as if it is due - * to a leap second. If that's the case, a simple conversion is applied, replacing - * the second-of-minute of 60 with 59. - * If that's not the case, we propagate the {@link DateTimeParseException} to the - * caller. - *

+ * Parse a {@link String} object into a {@link Instant} using the time-zone offset for UTC, {@code ZoneOffset.UTC}, + * and the system default time-zone, {@code ZoneId.systemDefault()}. + * + *

While parsing, if an exception occurs, we try to handle it as if it is due to a leap second. If that is + * the case, a simple conversion is applied, replacing the second-of-minute of 60 with 59. If that is not the case, + * we propagate the {@link DateTimeParseException} to the caller. */ public static final Function RFC3339_DATE_PARSER = time -> { try {