Update javadoc to identify proper execption that is thrown.
Change-Id: Icde0b6932b7ed7769f9ed18cc205c77b060c2b82
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*
* @param str String to be parsed
* @return An optional Revision instance.
- * @throws IllegalArgumentException if the string format does not conform specification.
+ * @throws DateTimeParseException if the string format does not conform specification.
*/
public static Optional<Revision> ofNullable(@Nullable final String str) {
return str == null ? Optional.empty() : Optional.of(new Revision(str));