mirror of https://github.com/apache/poi.git
fix normal priority FindBugs warning: DMI_INVOKING_HASHCODE_ON_ARRAY
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1715998 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
577a89ad10
commit
4b4eca2f4b
|
@ -233,7 +233,10 @@ public abstract class CellRangeAddressBase {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int[] values = new int[]{getMinRow(), getMaxRow(), getMinColumn(), getMaxColumn()};
|
int code = (getMinColumn() +
|
||||||
return values.hashCode();
|
(getMaxColumn() << 8) +
|
||||||
|
(getMinRow() << 16) +
|
||||||
|
(getMaxRow() << 24));
|
||||||
|
return code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue