optimized performance of HSSFCell#setHyperlink

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@983362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2010-08-08 08:04:28 +00:00
parent c9a7354786
commit 7ff307c17a

View File

@ -1159,8 +1159,9 @@ public class HSSFCell implements Cell {
break;
}
int eofLoc = _sheet.getSheet().findFirstRecordLocBySid( EOFRecord.sid );
_sheet.getSheet().getRecords().add( eofLoc, link.record );
List<RecordBase> records = _sheet.getSheet().getRecords();
int eofLoc = records.size() - 1;
records.add( eofLoc, link.record );
}
/**
* Only valid for formula cells