poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r677997 - /poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java
Date Fri, 18 Jul 2008 18:51:01 GMT
Author: nick
Date: Fri Jul 18 11:51:01 2008
New Revision: 677997

URL: http://svn.apache.org/viewvc?rev=677997&view=rev
Log:
Put in an overloaded method to keep binary compatibilty

Modified:
    poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java

Modified: poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java?rev=677997&r1=677996&r2=677997&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java Fri Jul 18 11:51:01
2008
@@ -921,16 +921,15 @@
      * @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());
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message