To enable it, simply add it to the ObjectDifferBuilder like so:
ObjectDiffer objectDiffer = ObjectDifferBuilder.startBuilding()
.differs().register(new ByteArrayDiffer.Factory())
.build()
This will get rid of the Couldn't find a differ for type: [B
message and instead provide simple support for byte arrays by just using Arrays.equals instead of doing a deep comparison.
In which class exactly should I add this?
ObjectDiffer objectDiffer = ObjectDifferBuilder.startBuilding()
.differs().register(new ByteArrayDiffer.Factory())
.build()