highsource / highsource/jaxb-tools

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

Open
#692 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
465
Forks
105
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.