aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hssf/usermodel
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2008-07-18 18:51:01 +0000
committerNick Burch <nick@apache.org>2008-07-18 18:51:01 +0000
commitdb3bc0f51cbf60b358d95fa52dc125f67ede864f (patch)
tree5d897b750a7e3311a9dd5e8fefc6f5b4db8331ed /src/java/org/apache/poi/hssf/usermodel
parent70cc45613eec1559d47b7fda919774d4ca6c5914 (diff)
downloadpoi-db3bc0f51cbf60b358d95fa52dc125f67ede864f.tar.gz
poi-db3bc0f51cbf60b358d95fa52dc125f67ede864f.zip
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
Diffstat (limited to 'src/java/org/apache/poi/hssf/usermodel')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFCell.java13
1 files changed, 6 insertions, 7 deletions
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());
}
/**