Skip to content

Commit

Permalink
[MJAVADOC-758] correct exception in JavadocUtil (#230)
Browse files Browse the repository at this point in the history
Throw NPE, not IOException
  • Loading branch information
hgschmie committed Sep 8, 2023
1 parent d1c1db6 commit 2902d0d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -692,10 +692,10 @@ protected static List<String> getTagletClassNames(File jarFile)
*/
protected static void copyResource(URL url, File file) throws IOException {
if (file == null) {
throw new IOException("The file can't be null.");
throw new NullPointerException("The file can't be null.");
}
if (url == null) {
throw new IOException("The url could not be null.");
throw new NullPointerException("The url could not be null.");
}

FileUtils.copyURLToFile(url, file);
Expand Down

0 comments on commit 2902d0d

Please sign in to comment.