Skip to content

Configurable accessibility modifier #1851

@delanym

Description

@delanym

Generated classes have instance variable accessibility set to protected

@XmlRootElement(name = "ProductDescriptor")
public class ProductDescriptor implements Serializable
{

    private static final long serialVersionUID = 10001L;
    @XmlElement(required = true)
    protected String productId;

Is it possible to make the accessibility configurable and allow generating them as private?

If extending the class, the idea is to rather override the accessor/mutator than the field itself.

This is enforceable in Checkstyle's VisibilityModifier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions