Dogacel / kotlinx-protobuf-gen

Generate kotlinx serializable data classes from protobuf
Apache License 2.0
12 stars 3 forks source link

Two identical messages containing `bytes` are not considered equal #1

Open Dogacel opened 1 year ago

Dogacel commented 1 year ago

Either consider using something other than ByteArray or override the necessary methods in generated data class.

Data classes methods equals and hashCode should be overriden when a ByteArray property exists.

image

Overriding those methods will cause a huge equals function with lots of boilerplate. This should be fine considering all code is just auto-generated.