Use Arrays.hashCode() in ByteArrayResource.hashCode()
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue