summaryrefslogtreecommitdiff
path: root/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java
diff options
context:
space:
mode:
Diffstat (limited to 'xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java')
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java
index f0a651cbbb55..82ab17fafaca 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/SxcDocumentSerializer.java
@@ -83,7 +83,7 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
* An array of column widths of the current worksheet. Width is
* measured in number of characters.
*/
- private ArrayList ColumnRowList;
+ private ArrayList<ColumnRowInfo> ColumnRowList;
/** Width, in characters, of the current cell display data. */
private int displayWidth = 0;
@@ -183,7 +183,7 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
String families[] = new String[] { SxcConstants.COLUMN_STYLE_FAMILY,
SxcConstants.ROW_STYLE_FAMILY,
SxcConstants.TABLE_CELL_STYLE_FAMILY };
- Class classes[] = new Class[] { ColumnStyle.class,
+ Class<?> classes[] = new Class[] { ColumnStyle.class,
RowStyle.class,
CellStyle.class};
/*
@@ -302,7 +302,7 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
Debug.log(Debug.TRACE, "<TABLE>");
- ColumnRowList = new ArrayList();
+ ColumnRowList = new ArrayList<ColumnRowInfo>();
// Get table attributes
// TODO - extract style from attribute
@@ -625,8 +625,8 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
if (fmt.isDefault() && styleName.length()==0) {
int index = 1;
- for(Iterator e = ColumnRowList.iterator();e.hasNext();) {
- ColumnRowInfo cri = (ColumnRowInfo) e.next();
+ for(Iterator<ColumnRowInfo> e = ColumnRowList.iterator();e.hasNext();) {
+ ColumnRowInfo cri = e.next();
if(cri.isColumn()) {
if(colID>=index && colID<(index+cri.getRepeated())) {
fmt = new Format(cri.getFormat());