aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hssf/usermodel
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/hssf/usermodel')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java4
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFFont.java14
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFFooter.java1
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFHeader.java1
4 files changed, 3 insertions, 17 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
index a2dbd4d919..d321512070 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
@@ -1015,9 +1015,7 @@ public class HSSFCellStyle implements CellStyle
if(workbook != source.workbook) {
// Then we need to clone the format string,
// and update the format record for this
- short fmt = workbook.createFormat(
- source.getDataFormatString()
- );
+ short fmt = (short)workbook.createFormat(source.getDataFormatString() );
setDataFormat(fmt);
// Finally we need to clone the font,
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFFont.java b/src/java/org/apache/poi/hssf/usermodel/HSSFFont.java
index 2141c74f08..310abecefe 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFFont.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFFont.java
@@ -15,12 +15,6 @@
limitations under the License.
==================================================================== */
-
-/*
- * HSSFFont.java
- *
- * Created on December 9, 2001, 10:34 AM
- */
package org.apache.poi.hssf.usermodel;
import org.apache.poi.hssf.record.FontRecord;
@@ -29,16 +23,13 @@ import org.apache.poi.ss.usermodel.Font;
/**
* Represents a Font used in a workbook.
*
- * @version 1.0-pre
+ *
* @author Andrew C. Oliver
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createFont()
* @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getFontAt(short)
* @see org.apache.poi.hssf.usermodel.HSSFCellStyle#setFont(HSSFFont)
*/
-
-public class HSSFFont implements Font
-{
-
+public final class HSSFFont implements Font {
private FontRecord font;
private short index;
@@ -60,7 +51,6 @@ public class HSSFFont implements Font
public void setFontName(String name)
{
font.setFontName(name);
- font.setFontNameLength(( byte ) name.length());
}
/**
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFFooter.java b/src/java/org/apache/poi/hssf/usermodel/HSSFFooter.java
index 422af62c7f..4f10ba8c9f 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFFooter.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFFooter.java
@@ -86,7 +86,6 @@ public class HSSFFooter extends HeaderFooter implements Footer {
"&C" + (center == null ? "" : center) +
"&L" + (left == null ? "" : left) +
"&R" + (right == null ? "" : right));
- footerRecord.setFooterLength((byte)footerRecord.getFooter().length());
}
}
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFHeader.java b/src/java/org/apache/poi/hssf/usermodel/HSSFHeader.java
index c5247525a1..36dfc969b0 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFHeader.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFHeader.java
@@ -92,7 +92,6 @@ public class HSSFHeader extends HeaderFooter implements Header {
headerRecord.setHeader( "&C" + ( center == null ? "" : center ) +
"&L" + ( left == null ? "" : left ) +
"&R" + ( right == null ? "" : right ) );
- headerRecord.setHeaderLength( (byte) headerRecord.getHeader().length() );
}
}