Skip to content

feat(java-jaxrs-common): improve code generation for comparison methods in POJOs#77

Open
Dakskihedron wants to merge 5 commits intokarlvr:mainfrom
Dakskihedron:main
Open

feat(java-jaxrs-common): improve code generation for comparison methods in POJOs#77
Dakskihedron wants to merge 5 commits intokarlvr:mainfrom
Dakskihedron:main

Conversation

@Dakskihedron
Copy link
Copy Markdown
Contributor

Description

Fixes byte array comparison for file properties by using java.util.Arrays.equals instead of java.util.Objects.equals. Also use Lombok to generate the equals and hashCode methods in POJOs when useLombok: true so the correct utility classes are automatically used when comparing objects.

Correctly use java.util.Arrays.equals to compare byte arrays for file
properties.
Let Lombok generate the equals and hashCode methods when useLombok is
true. Lombok will use the correct utility classes to handle comparisons
for objects like arrays.
…lean properties

Drop the extra "is" (if present) from the property identifier during
setter generation when Lombok is used and the property is a primitive
boolean. This ensures the Lombok setter is correctly called.
@Dakskihedron Dakskihedron changed the title feat(java-jaxrs-common): improve code generation for comparison feat(java-jaxrs-common): improve code generation comparison methods in POJOs Mar 20, 2026
@Dakskihedron Dakskihedron changed the title feat(java-jaxrs-common): improve code generation comparison methods in POJOs feat(java-jaxrs-common): improve code generation for comparison methods in POJOs Mar 20, 2026
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.

1 participant