]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Correction of style violations
authorAndreas L. Delmelle <adelmelle@apache.org>
Mon, 19 Sep 2005 21:20:41 +0000 (21:20 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Mon, 19 Sep 2005 21:20:41 +0000 (21:20 +0000)
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
src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java
src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java

index cf3a6af0590ff737cfbebcb1ce0b16335ee6bdbf..c49c3576040f1336ec84cdbdd7a102f04b92466f 100644 (file)
@@ -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);
             }
         }
index cbaf1a8f3c41da43507d77299208b2f243e2342e..fd4a81b58529d9dd28ff067413b982c42b86e067 100644 (file)
@@ -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());
                             }
index 5b1576c977b871e947d83c26741efed3676f5432..cda906c9eb73c44fe60dcf79efcdec5094cf95d0 100644 (file)
@@ -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