bug 60416: prefer CellReference ref over String ref

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-11-24 21:25:43 +00:00
parent d2f6e5c24e
commit 52dcd75c66
2 changed files with 2 additions and 2 deletions

View File

@ -711,7 +711,7 @@ public class SXSSFCell implements Cell {
XSSFHyperlink xssfobj = (XSSFHyperlink)link;
// Assign to us
CellReference ref = new CellReference(getRowIndex(), getColumnIndex());
xssfobj.setCellReference( ref.formatAsString() );
xssfobj.setCellReference( ref );
// Add to the lists
getSheet()._sh.addHyperlink(xssfobj);

View File

@ -290,7 +290,7 @@ public class XSSFHyperlink implements Hyperlink {
_ctHyperlink.setRef(ref);
}
@Internal
protected void setCellReference(CellReference ref) {
public void setCellReference(CellReference ref) {
setCellReference(ref.formatAsString());
}