Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Javadocs: declare that readDate might throw NullPointerException when value is empty [BATCH-1608] #1975
The readDate call throws an unexpected NullPointerException when the value is null. The documentation does not declare this as the behavior and one should be changed to match the other. See the attached file for the JUnit test file.
Referenced from: commits d0abc74
Dave Syer commented
I presume the exception comes from DateFormat which itself does not declare or document the NullPointerException, so I think it's a bit pedantic to require all its clients to do so. However, we can always improve the Javadocs...