Put in an overloaded method to keep binary compatibilty

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@677997 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2008-07-18 18:51:01 +00:00
parent 70cc45613e
commit db3bc0f51c
1 changed files with 6 additions and 7 deletions

View File

@ -921,16 +921,15 @@ public class HSSFCell implements Cell
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createCellStyle()
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getCellStyleAt(short)
*/
public void setCellStyle(CellStyle style)
{
HSSFCellStyle hStyle = (HSSFCellStyle)style;
public void setCellStyle(CellStyle style) {
setCellStyle( (HSSFCellStyle)style );
}
public void setCellStyle(HSSFCellStyle style) {
// Verify it really does belong to our workbook
hStyle.verifyBelongsToWorkbook(book);
style.verifyBelongsToWorkbook(book);
// Change our cell record to use this style
record.setXFIndex(hStyle.getIndex());
record.setXFIndex(style.getIndex());
}
/**