mirror of https://github.com/apache/poi.git
[github-344] refactor equals method in XSSFHyperlinkRecord
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902751 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6e34a3cebe
commit
30b20e3967
|
@ -89,12 +89,11 @@ public class XSSFHyperlinkRecord {
|
||||||
|
|
||||||
XSSFHyperlinkRecord that = (XSSFHyperlinkRecord) o;
|
XSSFHyperlinkRecord that = (XSSFHyperlinkRecord) o;
|
||||||
|
|
||||||
if (cellRangeAddress != null ? !cellRangeAddress.equals(that.cellRangeAddress) : that.cellRangeAddress != null)
|
return Objects.equals(cellRangeAddress, that.cellRangeAddress) &&
|
||||||
return false;
|
Objects.equals(relId, that.relId) &&
|
||||||
if (relId != null ? !relId.equals(that.relId) : that.relId != null) return false;
|
Objects.equals(location, that.location) &&
|
||||||
if (location != null ? !location.equals(that.location) : that.location != null) return false;
|
Objects.equals(toolTip, that.toolTip) &&
|
||||||
if (toolTip != null ? !toolTip.equals(that.toolTip) : that.toolTip != null) return false;
|
Objects.equals(display, that.display);
|
||||||
return display != null ? display.equals(that.display) : that.display == null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue