From ba7f44bf53fa85e822c7a21a107d1b7bbfe3f102 Mon Sep 17 00:00:00 2001 From: Sven Diedrichsen Date: Thu, 21 Dec 2017 00:16:27 +0100 Subject: [PATCH] #444 fixing some comments and adding missing final keyword. --- src/main/java/org/cactoos/time/DateOf.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/org/cactoos/time/DateOf.java b/src/main/java/org/cactoos/time/DateOf.java index 8f1d8dcf86..46c1351b92 100644 --- a/src/main/java/org/cactoos/time/DateOf.java +++ b/src/main/java/org/cactoos/time/DateOf.java @@ -26,7 +26,6 @@ import java.time.LocalDateTime; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; -import java.time.temporal.TemporalAccessor; import java.util.Date; import org.cactoos.Scalar; import org.cactoos.scalar.UncheckedScalar; @@ -42,12 +41,11 @@ public class DateOf implements Scalar { /** * The parsed date. */ - private Scalar parsed; + private final Scalar parsed; /** * Parses the provided date as ISO formatted. * @param date The date to parse. - * {@link TemporalAccessor} into type T */ public DateOf(final String date) { this(date, DateTimeFormatter.ISO_DATE_TIME); @@ -57,7 +55,6 @@ public DateOf(final String date) { * Parses the date using the provided format. * @param date The date to parse. * @param format The format to use. - * {@link TemporalAccessor} into type T */ public DateOf(final String date, final String format) { this(date, DateTimeFormatter.ofPattern(format)); @@ -67,7 +64,6 @@ public DateOf(final String date, final String format) { * Parsing the date using the provided formatter. * @param date The date to parse. * @param formatter The formatter to use. - * {@link TemporalAccessor} into type T */ public DateOf(final String date, final DateTimeFormatter formatter) { this.parsed = new UncheckedScalar<>(