Skip to content

Fix UWF_NULL_FIELD in DescriptorGeneratorMojo by initializing mojoDependencies#1028

Closed
MateusJunior7 wants to merge 1 commit intoapache:masterfrom
MateusJunior7:fix-uwf-mojoDependencies
Closed

Fix UWF_NULL_FIELD in DescriptorGeneratorMojo by initializing mojoDependencies#1028
MateusJunior7 wants to merge 1 commit intoapache:masterfrom
MateusJunior7:fix-uwf-mojoDependencies

Conversation

@MateusJunior7
Copy link

This PR fixes a UWF_NULL_FIELD warning reported by SpotBugs in org.apache.maven.plugin.plugin.DescriptorGeneratorMojo.

The field mojoDependencies was declared but never initialized, which left it in a null state.
It is now initialized as an empty ArrayList, removing the null-only assignment and improving robustness.

After this change, the UWF_NULL_FIELD warning is no longer reported for this class
(maven-plugin-plugin module builds successfully and SpotBugs reports are clean for this issue).

@Bukama
Copy link
Contributor

Bukama commented Nov 29, 2025

part of #1030

@Bukama Bukama closed this Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants