From 1860711be91f5b20d0c83b07e42f5e02353c9316 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Mon, 19 Sep 2005 21:20:41 +0000 Subject: [PATCH] Correction of style violations git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@290272 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java | 6 +++--- .../fop/layoutmgr/table/TableContentLayoutManager.java | 2 +- .../org/apache/fop/layoutmgr/table/TableLayoutManager.java | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java b/src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java index cf3a6af05..c49c35760 100644 --- a/src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java +++ b/src/java/org/apache/fop/layoutmgr/table/ColumnSetup.java @@ -60,7 +60,7 @@ public class ColumnSetup { ListIterator iter = rawCols.listIterator(); while (iter.hasNext()) { TableColumn col = (TableColumn)iter.next(); - if( col != null ) { + if (col != null) { colnum = col.getColumnNumber(); } for (int i = 0; i < col.getNumberColumnsRepeated(); i++) { @@ -101,7 +101,7 @@ public class ColumnSetup { + size + " columns have been defined. " + "The last defined column will be reused."); if (!table.isAutoLayout()) { - log.warn("Please note that according XSL-FO 1.0 (4.26.9) says that " + log.warn("Please note that according XSL-FO 1.0 (7.26.9) says that " + "the 'column-width' property must be specified for every " + "column, unless the automatic table layout is used."); } @@ -151,7 +151,7 @@ public class ColumnSetup { public int getXOffset(int col, PercentBaseContext context) { int xoffset = 0; for (int i = 1; i < col; i++) { - if( getColumn(i) != null ) { + if (getColumn(i) != null) { xoffset += getColumn(i).getColumnWidth().getValue(context); } } diff --git a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java index cbaf1a8f3..fd4a81b58 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java @@ -439,7 +439,7 @@ public class TableContentLayoutManager implements PercentBaseContext { i < primary.getStartCol() + primary.getCell().getNumberColumnsSpanned(); i++) { - if( getTableLM().getColumns().getColumn(i + 1) != null ) { + if (getTableLM().getColumns().getColumn(i + 1) != null) { spanWidth += getTableLM().getColumns().getColumn(i + 1) .getColumnWidth().getValue(getTableLM()); } diff --git a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java index 5b1576c97..cda906c9e 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java @@ -156,7 +156,7 @@ public class TableLayoutManager extends BlockStackingLayoutManager float factors = 0; for (Iterator i = columns.iterator(); i.hasNext();) { TableColumn column = (TableColumn) i.next(); - if( column != null ) { + if (column != null) { Length width = column.getColumnWidth(); sumCols += width.getValue(this); if (width instanceof TableColLength) { @@ -461,5 +461,4 @@ public class TableLayoutManager extends BlockStackingLayoutManager return referenceBPD; } -} - +} \ No newline at end of file -- 2.39.5