From: Nick Burch Date: Fri, 18 Jul 2008 18:51:01 +0000 (+0000) Subject: Put in an overloaded method to keep binary compatibilty X-Git-Tag: REL_3_5_BETA2~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db3bc0f51cbf60b358d95fa52dc125f67ede864f;p=poi.git 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 --- diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java index e4a7e37d70..4d4ad500eb 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java @@ -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()); } /**