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 0427fc7a0f
commit ce5c607e24
1 changed files with 3 additions and 2 deletions

View File

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