WordPress-FluxC-Android icon indicating copy to clipboard operation
WordPress-FluxC-Android copied to clipboard

PostModel breaks the equals/hashcode contract

Open malinajirka opened this issue 5 years ago • 0 comments

PostModel.java overrides the equals method, but does not override the hashcode. This breaks the equals-hashcode contract and can result in hard to find bugs.

Consider using EqualsVerifier or a similar library or converting the model into a Kotlin data class if possible.

malinajirka avatar May 15 '19 08:05 malinajirka