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:
Javen O'Neal 2015-11-24 00:08:22 +00:00
parent 10eb8f8095
commit 6acd60f74d

View File

@ -233,7 +233,10 @@ public abstract class CellRangeAddressBase {
@Override
public int hashCode() {
final int[] values = new int[]{getMinRow(), getMaxRow(), getMinColumn(), getMaxColumn()};
return values.hashCode();
int code = (getMinColumn() +
(getMaxColumn() << 8) +
(getMinRow() << 16) +
(getMaxRow() << 24));
return code;
}
}