Skip to content

Commit

Permalink
javadoc update
Browse files Browse the repository at this point in the history
  • Loading branch information
pgomulka committed Apr 2, 2019
1 parent d040c4d commit 358d761
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,11 @@ public JodaDateFormatter(String pattern, DateTimeFormatter parser, DateTimeForma
}

/**
* Try to parse input to a java time TemporalAccessor using Joda library
* Try to parse input to a java time TemporalAccessor using joda-time library.
* @see DateFormatter#parse(String)
* @throws UnsupportedOperationException if parsing is not supported
* @throws IllegalArgumentException if the text to parse is invalid
* @see DateTimeFormatter#parseDateTime
*
* @throws java.time.DateTimeException as per java-time javadoc
* @see ZonedDateTime#ofInstant(Instant, ZoneId)
* @see Instant#ofEpochMilli(long)
* @throws java.time.DateTimeException if the parsing result exceeds the supported range of <code>ZoneDateTime</code>
* or if the parsed instant exceeds the maximum or minimum instant
*/
@Override
public TemporalAccessor parse(String input) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.elasticsearch.common.joda.Joda;
import org.joda.time.DateTime;

import java.time.DateTimeException;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZoneOffset;
Expand All @@ -39,6 +40,8 @@ public interface DateFormatter {
* @param input An arbitrary string resembling the string representation of a date or time
* @throws IllegalArgumentException If parsing fails, this exception will be thrown.
* Note that it can contained suppressed exceptions when several formatters failed parse this value
* @throws DateTimeException if the parsing result exceeds the supported range of <code>ZoneDateTime</code>
* or if the parsed instant exceeds the maximum or minimum instant
* @return The java time object containing the parsed input
*/
TemporalAccessor parse(String input);
Expand Down

0 comments on commit 358d761

Please sign in to comment.