Skip to content

Commit

Permalink
FasterXML#286: Get the pre 2.16 constructor of InstantDeserializer back
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldk committed Nov 18, 2023
1 parent 280ae1a commit 51da8e3
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,24 @@ protected InstantDeserializer(Class<T> supportedType,
_alwaysAllowStringifiedDateTimestamps = readNumericStringsAsTimestamp;
}

/**
* @deprecated Since 2.16, use {@link #InstantDeserializer(Class,DateTimeFormatter,
* Function,Function,Function,BiFunction,boolean,boolean,boolean)} instead.
*/
@Deprecated()
protected InstantDeserializer(Class<T> supportedType,
DateTimeFormatter formatter,
Function<TemporalAccessor, T> parsedToValue,
Function<FromIntegerArguments, T> fromMilliseconds,
Function<FromDecimalArguments, T> fromNanoseconds,
BiFunction<T, ZoneId, T> adjust,
boolean replaceZeroOffsetAsZ

) {
this(supportedType, formatter, parsedToValue, fromMilliseconds, fromNanoseconds, adjust, replaceZeroOffsetAsZ,
DEFAULT_NORMALIZE_ZONE_ID, DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS);
}

@SuppressWarnings("unchecked")
protected InstantDeserializer(InstantDeserializer<T> base, DateTimeFormatter f)
{
Expand Down

0 comments on commit 51da8e3

Please sign in to comment.