You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "pzygielo (via GitHub)" <gi...@apache.org> on 2024/12/05 11:56:15 UTC
Re: [PR] [MJAVADOC-825] Prefer NullPointerExceptions for null arguments [maven-javadoc-plugin]
pzygielo commented on code in PR #350:
URL: https://github.com/apache/maven-javadoc-plugin/pull/350#discussion_r1871242308
##########
src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java:
##########
@@ -534,11 +534,16 @@ protected static JavaVersion getJavadocVersion(File javadocExe)
* @return the version of the javadoc for the output, only digits and dots
* @throws PatternSyntaxException if the output doesn't match with the output pattern
* {@code (?s).*?[^a-zA-Z]([0-9]+\\.?[0-9]*)(\\.([0-9]+))?.*}.
- * @throws IllegalArgumentException if the output is null
+ * @throws NullPointerException if the output is null
+ * @throws IllegalArgumentException if the output is empty
*/
protected static String extractJavadocVersion(String output) throws IllegalArgumentException {
Review Comment:
Given `IAEx` being declared as thrown by, perhaps `NPEx` could also be added for style consistency?
Or `IAEx` declaration removed?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org