mirror of https://github.com/apache/poi.git
small refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899134 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
058aef3bfb
commit
0bc81c57fd
|
@ -231,10 +231,9 @@ import static org.apache.logging.log4j.util.Unbox.box;
|
||||||
|
|
||||||
|
|
||||||
/*package*/ static void updateHyperlinks(Sheet sheet, FormulaShifter formulaShifter) {
|
/*package*/ static void updateHyperlinks(Sheet sheet, FormulaShifter formulaShifter) {
|
||||||
int sheetIndex = sheet.getWorkbook().getSheetIndex(sheet);
|
final int sheetIndex = sheet.getWorkbook().getSheetIndex(sheet);
|
||||||
List<? extends Hyperlink> hyperlinkList = sheet.getHyperlinkList();
|
|
||||||
|
|
||||||
for (Hyperlink hyperlink : hyperlinkList) {
|
for (Hyperlink hyperlink : sheet.getHyperlinkList()) {
|
||||||
XSSFHyperlink xhyperlink = (XSSFHyperlink) hyperlink;
|
XSSFHyperlink xhyperlink = (XSSFHyperlink) hyperlink;
|
||||||
String cellRef = xhyperlink.getCellRef();
|
String cellRef = xhyperlink.getCellRef();
|
||||||
CellRangeAddress cra = CellRangeAddress.valueOf(cellRef);
|
CellRangeAddress cra = CellRangeAddress.valueOf(cellRef);
|
||||||
|
|
Loading…
Reference in New Issue