mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
small optimisation on getCellStyle
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
624f834310
commit
4d0a627fb9
@ -570,7 +570,7 @@ public class SXSSFCell extends CellBase {
|
||||
/**
|
||||
* Return the cell's style.
|
||||
*
|
||||
* @return the cell's style. Always not-null. Default cell style has zero index and can be obtained as
|
||||
* @return the cell's style. Never null. Default cell style has zero index and can be obtained as
|
||||
* <code>workbook.getCellStyleAt(0)</code>
|
||||
* @see org.apache.poi.ss.usermodel.Workbook#getCellStyleAt(int)
|
||||
*/
|
||||
@ -583,10 +583,9 @@ public class SXSSFCell extends CellBase {
|
||||
SXSSFWorkbook wb = getSheet().getWorkbook();
|
||||
style = wb.getCellStyleAt(0);
|
||||
}
|
||||
return style;
|
||||
} else {
|
||||
return _style;
|
||||
_style = style;
|
||||
}
|
||||
return _style;
|
||||
}
|
||||
|
||||
private CellStyle getDefaultCellStyleFromColumn() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user