[izpack-changes] izpack-src/src/lib/com/izforge/izpack/gui TwoColumnLayout.java,1.10,1.11

jponge nobody at sheep.berlios.de
Tue Mar 21 19:14:51 CET 2006


Update of /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/gui
In directory sheep:/tmp/cvs-serv3622/src/lib/com/izforge/izpack/gui

Modified Files:
	TwoColumnLayout.java 
Log Message:
Some fixes adviced by IntelliJ IDEA 5.1 code inspector.

Index: TwoColumnLayout.java
===================================================================
RCS file: /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/gui/TwoColumnLayout.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- TwoColumnLayout.java	12 Mar 2006 16:32:20 -0000	1.10
+++ TwoColumnLayout.java	21 Mar 2006 18:14:45 -0000	1.11
@@ -426,7 +426,7 @@
                 positionComponent(y, i, LEFT, parent);
                 positionComponent((y + offset), i, RIGHT, parent);
 
-                y = y + leftHeight;
+                y += leftHeight;
             }
             else if (leftHeight < rightHeight)
             {
@@ -435,14 +435,14 @@
                 positionComponent((y + offset), i, LEFT, parent);
                 positionComponent(y, i, RIGHT, parent);
 
-                y = y + rightHeight;
+                y += rightHeight;
             }
             else
             {
                 positionComponent(y, i, LEFT, parent);
                 positionComponent(y, i, RIGHT, parent);
 
-                y = y + leftHeight;
+                y += leftHeight;
             }
         }
     }
@@ -531,8 +531,8 @@
                 // --------------------------------------------------
                 if (constraints.indent)
                 {
-                    width = width - indent;
-                    x = x + indent;
+                    width -= indent;
+                    x += indent;
                 }
 
                 component.setBounds(x, y, width, height);
@@ -566,7 +566,7 @@
 
                 if (constraints.indent)
                 {
-                    temp = temp + indent;
+                    temp += indent;
                 }
 
                 if (temp > width)
@@ -611,7 +611,7 @@
 
                 if (constraints.indent)
                 {
-                    temp = temp + indent;
+                    temp += indent;
                 }
 
                 if (temp > width)
@@ -630,7 +630,7 @@
 
         for (int i = 0; i < rows(); i++)
         {
-            height = height + rowHeight(i);
+            height += rowHeight(i);
         }
 
         return (height);




More information about the izpack-changes mailing list