The harmony tests test the exact string value of the Position constants
and point out that we have to initialize them with uppercase first letter.
2006-08-28 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/text/Position.java
(Bias.Forward): Initialize with 'Forward' rather then 'forward'.
(Bias.Backward): Initialize with 'Backward' rather then 'backward'.
/Roman
Index: javax/swing/text/Position.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/Position.java,v
retrieving revision 1.6
diff -u -1 -2 -r1.6 Position.java
--- javax/swing/text/Position.java 28 Mar 2006 10:58:37 -0000 1.6
+++ javax/swing/text/Position.java 28 Aug 2006 16:03:36 -0000
@@ -33,26 +33,26 @@
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
package javax.swing.text;
public interface Position
{
static final class Bias
{
- public static final Bias Backward = new Bias("backward");
- public static final Bias Forward = new Bias("forward");
+ public static final Bias Backward = new Bias("Backward");
+ public static final Bias Forward = new Bias("Forward");
private String name;
private Bias(String n)
{
name = n;
}
public String toString()
{
return name;
}