Use Arrays.hashCode() in ByteArrayResource.hashCode()

This commit is contained in:
Сергей Цыпанов
2021-10-11 15:28:50 +02:00
committed by Sam Brannen
parent 63fac1b7c8
commit 114fa47171
@@ -126,7 +126,7 @@ public class ByteArrayResource extends AbstractResource {
*/
@Override
public int hashCode() {
return (byte[].class.hashCode() * 29 * this.byteArray.length);
return Arrays.hashCode(byteArray);
}
}