Skip to content

Commit

Permalink
#444 fixing some comments and adding missing final keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
svendiedrichsen committed Dec 20, 2017
1 parent 7bfb893 commit ba7f44b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/cactoos/time/DateOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -42,12 +41,11 @@ public class DateOf implements Scalar<Date> {
/**
* The parsed date.
*/
private Scalar<Date> parsed;
private final Scalar<Date> 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);
Expand All @@ -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));
Expand All @@ -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<>(
Expand Down

0 comments on commit ba7f44b

Please sign in to comment.