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) {
int sheetIndex = sheet.getWorkbook().getSheetIndex(sheet);
List<? extends Hyperlink> hyperlinkList = sheet.getHyperlinkList();
final int sheetIndex = sheet.getWorkbook().getSheetIndex(sheet);
for (Hyperlink hyperlink : hyperlinkList) {
for (Hyperlink hyperlink : sheet.getHyperlinkList()) {
XSSFHyperlink xhyperlink = (XSSFHyperlink) hyperlink;
String cellRef = xhyperlink.getCellRef();
CellRangeAddress cra = CellRangeAddress.valueOf(cellRef);