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