This patch (committed) fixes a not-very-critical bug in the toString() method for the TabStop class:

2006-07-24  David Gilbert  <[EMAIL PROTECTED]>

        * javax/swing/text/TabStop.java
        (toString): Don't use 'left ' prefix, and added space between tab
        location and '(w/leader)' suffix.

This fixes a failure in the Intel test suite.

Regards,

Dave
Index: javax/swing/text/TabStop.java
===================================================================
RCS file: /sources/classpath/classpath/javax/swing/text/TabStop.java,v
retrieving revision 1.3
diff -u -r1.3 TabStop.java
--- javax/swing/text/TabStop.java       13 Sep 2005 23:44:50 -0000      1.3
+++ javax/swing/text/TabStop.java       24 Jul 2006 16:12:24 -0000
@@ -1,5 +1,5 @@
-/* TabSet.java --
-   Copyright (C) 2004 Free Software Foundation, Inc.
+/* TabStop.java --
+   Copyright (C) 2004, 2006 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -102,14 +102,16 @@
     return (int) pos + (int) leader + (int) align;
   }
 
+  /**
+   * Returns a string describing this <code>TabStop</code>.
+   * 
+   * @return A string describing this <code>TabStop</code>.
+   */
   public String toString() 
   {
     String prefix = "";
     switch (align)
       {
-      case ALIGN_LEFT:
-        prefix = "left ";
-        break;
       case ALIGN_RIGHT:
         prefix = "right ";
         break;
@@ -130,7 +132,8 @@
         break;
       }
     
-    return (prefix + "tab @" + pos + ((leader == LEAD_NONE) ? "" : 
"(w/leaders)"));
+    return prefix + "tab @" + pos 
+        + ((leader == LEAD_NONE) ? "" : " (w/leaders)");
   }
 
 }

Reply via email to