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
10eb8f8095
commit
6acd60f74d
@ -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
Block a user