Description of changes:
The DateJsonUnmarshaller.getInstance() function is supposed to return an instance that can unmarshall UNIX_TIMESTAMP dates, but due to a logic error it if any other piece of code used a different format when calling DateJsonUnmarshaller getInstance(format) then that format would be returned instead.
This change ensures that the version without arguments always returns an unmarshaller for UNIX_TIMESTAMP.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
Description of changes: The
DateJsonUnmarshaller.getInstance()
function is supposed to return an instance that can unmarshallUNIX_TIMESTAMP
dates, but due to a logic error it if any other piece of code used a different format when callingDateJsonUnmarshaller getInstance(format)
then that format would be returned instead.This change ensures that the version without arguments always returns an unmarshaller for
UNIX_TIMESTAMP
.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.