Skip to content

Update plugin Xcommons-lang, allow disabling of method generation, improve toString class loading, equals method additional options Transients/DeepRecursive #692

@duttonw

Description

@duttonw

Changes:

  • Updated documentation

  • Introduce equals to allow deep recursive equals checks vs by reference (default):

  -Xcommons-lang:equalsTestTransients=TRUE|FALSE (default: FALSE)
  -Xcommons-lang:equalsTestRecursive=TRUE|FALSE (default: FALSE)
  • Enable ability to disable parts of commons-lang to allow mixing and matching of plugins
  -Xcommons-lang:addToStringMethod=TRUE|FALSE (default: TRUE)
  -Xcommons-lang:addHashCodeMethod=TRUE|FALSE (default: TRUE)
  -Xcommons-lang:addEqualsMethod=TRUE|FALSE (default: TRUE)
  • Streamlined -Xcommons-lang:ToStringStyle to look prefer Static Final variables that passes regex ^[A-Z0-9_]+$ else treat it as a Class, don't error if it can't find it, since it may not be visible to the generator (But do provide warnings of such cases).

  • Also allow classes to be passed through even if NOT available to generator so plugin dependancies do not need to include additional jar's unless the developer wants to remove the warning.

Requres: #692 for unit testing to pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions