Skip to content

#692 commons lang plugin updates#695

Open
duttonw wants to merge 2 commits into
highsource:masterfrom
duttonw:692_commons-lang_plugin_updates
Open

#692 commons lang plugin updates#695
duttonw wants to merge 2 commits into
highsource:masterfrom
duttonw:692_commons-lang_plugin_updates

Conversation

@duttonw

@duttonw duttonw commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

see #692 for details, needs #691 for unit testing

duttonw added 2 commits April 15, 2026 15:33
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: highsource#692 for unit testing to pass.
@duttonw duttonw force-pushed the 692_commons-lang_plugin_updates branch from b35bc65 to 9d42c33 Compare April 15, 2026 07:18
@mattrpav mattrpav self-requested a review April 15, 2026 23:09
@duttonw

duttonw commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

Hi @mattrpav , Any suggestions if this needs improvements? or would you like it split into a few pr's?

@laurentschoelens

Copy link
Copy Markdown
Collaborator

@duttonw : could you split into few PR's w/ specific change in each please ? Thanks

@duttonw

duttonw commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

Hi @laurentschoelens ,
How do you want it split would this work for you:

  • Disable flags (createToStringMethod, createEqualsMethod, createHashCodeMethod )
  • createToStringMethod Updates (All types as well as better ability to generate without Fully Qualified path if not visible at generate time)
  • createEqualsMethod Updates (reflectionEquals)

@laurentschoelens

Copy link
Copy Markdown
Collaborator

Yes you can do that 😄

@duttonw

duttonw commented Jun 27, 2026

Copy link
Copy Markdown
Contributor Author

Hi @laurentschoelens ,

This is now split up. I've also included an all in one to help with merging since there will be merge clonflicts.

#708 Disable Falgs
#709 ToString
#710 Equals with Recursive Reflective Equals
#711 (All in one)

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