refactor: field could be final
In this case since Plexus will initialize the field with the default
value when the Mojo is configured there's no need to initialize the
field at construction, that would be cleaner, but it would mark the
field for could be made final check.
@@ -134,7 +134,7 @@ public class GenerateMetadataMojo extends AbstractMojo {
@Parameter(defaultValue = "RESOURCE_AND_SPECIFICATION")
@SuppressWarnings("PMD.ImmutableField")
- private InspectionMode inspectionMode = InspectionMode.RESOURCE_AND_SPECIFICATION;
+ private InspectionMode inspectionMode;
/**
* Partial Extension JSON descriptor to augment
