You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "MateusJunior7 (via GitHub)" <gi...@apache.org> on 2025/11/16 22:51:14 UTC
[PR] Check mkdirs() return value when creating output directory in DescriptorGeneratorMojo [maven-plugin-tools]
MateusJunior7 opened a new pull request, #1029:
URL: https://github.com/apache/maven-plugin-tools/pull/1029
This PR addresses a RV_RETURN_VALUE_IGNORED_BAD_PRACTICE warning reported by SpotBugs in
org.apache.maven.plugin.plugin.DescriptorGeneratorMojo.generate().
The call to java.io.File.mkdirs() previously ignored its boolean return value.
The code now:
Checks whether the output directory already exists.
Calls mkdirs() only when necessary.
Throws a MojoExecutionException when directory creation fails, instead of silently ignoring the error.
After this change, the RV warning no longer appears in the SpotBugs report for this class.
--
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
Re: [PR] Check mkdirs() return value when creating output directory in DescriptorGeneratorMojo [maven-plugin-tools]
Posted by "Bukama (via GitHub)" <gi...@apache.org>.
Bukama closed pull request #1029: Check mkdirs() return value when creating output directory in DescriptorGeneratorMojo
URL: https://github.com/apache/maven-plugin-tools/pull/1029
--
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
Re: [PR] Check mkdirs() return value when creating output directory in DescriptorGeneratorMojo [maven-plugin-tools]
Posted by "Bukama (via GitHub)" <gi...@apache.org>.
Bukama commented on PR #1029:
URL: https://github.com/apache/maven-plugin-tools/pull/1029#issuecomment-3591897745
part of #1030
--
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