[Patch][gui] java.awt.font.TextAttribute
Michael Koch
konqueror@gmx.de
Thu Oct 28 11:35:00 GMT 2004
Hi list,
I just commited the attached patch to make the initialization of the
constants even better.
Michael
2004-10-28 Michael Koch <konqueror@gmx.de>
* java/awt/font/TextAttribute.java
(RUN_DIRECTION_LTR): Initialie with static value instead of
calculating it.
(RUN_DIRECTION_RTL): Likewise.
(STRIKETHROUGH_ON): Likewise.
(SWAP_COLORS_ON): Likewise.
-------------- next part --------------
Index: java/awt/font/TextAttribute.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/font/TextAttribute.java,v
retrieving revision 1.3
diff -u -r1.3 TextAttribute.java
--- java/awt/font/TextAttribute.java 25 Oct 2004 10:37:36 -0000 1.3
+++ java/awt/font/TextAttribute.java 28 Oct 2004 11:32:40 -0000
@@ -1,5 +1,5 @@
-/* TextAttribute.java
- Copyright (C) 2003 Free Software Foundation, Inc.
+/* TextAttribute.java --
+ Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -70,19 +70,19 @@
public static final Float POSTURE_REGULAR = new Float (0.0);
public static final TextAttribute RUN_DIRECTION =
new TextAttribute ("RUN_DIRECTION");
- public static final Boolean RUN_DIRECTION_LTR = Boolean.valueOf(true);
- public static final Boolean RUN_DIRECTION_RTL = Boolean.valueOf(false);
+ public static final Boolean RUN_DIRECTION_LTR = Boolean.TRUE;
+ public static final Boolean RUN_DIRECTION_RTL = Boolean.FALSE;
public static final TextAttribute SIZE = new TextAttribute ("SIZE");
public static final TextAttribute STRIKETHROUGH =
new TextAttribute ("STRIKETHROUGH");
- public static final Boolean STRIKETHROUGH_ON = Boolean.valueOf(true);
+ public static final Boolean STRIKETHROUGH_ON = Boolean.TRUE;
public static final TextAttribute SUPERSCRIPT =
new TextAttribute ("SUPERSCRIPT");
public static final Integer SUPERSCRIPT_SUB = new Integer (-1);
public static final Integer SUPERSCRIPT_SUPER = new Integer (1);
public static final TextAttribute SWAP_COLORS =
new TextAttribute ("SWAP_COLORS");
- public static final Boolean SWAP_COLORS_ON = Boolean.valueOf(true);
+ public static final Boolean SWAP_COLORS_ON = Boolean.TRUE;
public static final TextAttribute TRANSFORM = new TextAttribute ("TRANSFORM");
public static final TextAttribute UNDERLINE = new TextAttribute ("UNDERLINE");
public static final Integer UNDERLINE_LOW_DASHED = new Integer (0);
More information about the Java-patches
mailing list