small refactor

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899134 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-03-22 14:14:08 +00:00
parent 058aef3bfb
commit 0bc81c57fd
1 changed files with 2 additions and 3 deletions

View File

@ -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);