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

This commit is contained in:
Сергей Цыпанов
2021-10-11 10:55:00 +03:00
committed by Sam Brannen
parent 63fac1b7c8
commit 114fa47171

View File

@@ -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);
}
}