]> source.dussan.org Git - poi.git/commitdiff
Put in an overloaded method to keep binary compatibilty
authorNick Burch <nick@apache.org>
Fri, 18 Jul 2008 18:51:01 +0000 (18:51 +0000)
committerNick Burch <nick@apache.org>
Fri, 18 Jul 2008 18:51:01 +0000 (18:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@677997 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFCell.java

index e4a7e37d70b3cce776b227598d6e7c25fbceef65..4d4ad500eb5e215a9fd729643177afbfcb84eaf0 100644 (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());
     }
 
     /**