StringUtils to/formatNumber: fix, step 1
[fanfix.git] / src / be / nikiroo / utils / test / TestLauncher.java
index 62f3f6f38918941cc005aa2ece45ad5773d924e6..3741e976a54dada71bb9fa37f3fa7a07f5e5cafa 100644 (file)
@@ -96,6 +96,7 @@ public class TestLauncher {
         * @throws Exception
         *             in case of error
         */
+       @SuppressWarnings("unused")
        protected void start() throws Exception {
        }
 
@@ -105,6 +106,7 @@ public class TestLauncher {
         * @throws Exception
         *             in case of error
         */
+       @SuppressWarnings("unused")
        protected void stop() throws Exception {
        }
 
@@ -285,11 +287,12 @@ public class TestLauncher {
                name = prefix(depth, false)
                                + (name == null ? "" : name).replace("\t", "    ");
 
-               while (name.length() < columns - 11) {
-                       name += ".";
+               StringBuilder dots = new StringBuilder();
+               while ((name.length() + dots.length()) < columns - 11) {
+                       dots.append('.');
                }
 
-               System.out.print(name);
+               System.out.print(name + dots.toString());
        }
 
        /**