Skip to content

fix(particle): stop ParticleBuilders that differ in overrideLimiter from comparing equal - #25

Merged
oglassdev merged 1 commit into
mainfrom
fix/particle-builder-equality
Oct 14, 2026
Merged

oglassdev merged 1 commit into
mainfrom
fix/particle-builder-equality

Conversation

@oglassdev

Copy link
Copy Markdown
Owner

ParticleBuilder is a data class, but it had hand-written equals and hashCode that skipped overrideLimiter. So two builders that differed only in that flag compared equal and hashed the same, e.g. as Set or Map keys.

This deletes both overrides, so the data class generates them from every property.

Testing

  • compileKotlin, compileTestKotlin and :example:compileKotlin pass.

The hand-written equals/hashCode skipped overrideLimiter. Remove them so
the data class generates both from every property.
@oglassdev
oglassdev merged commit 9f74daf into main Oct 14, 2026
1 check passed
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