This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: gnu.java.awt.peer.gtk.*
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 11 Mar 2004 09:45:15 +0100
- Subject: FYI: Patch: gnu.java.awt.peer.gtk.*
Hi list,
I commited the attached patch to fix little issues in the gtk peer.
Michael
2004-03-11 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/peer/ClasspathFontPeer.java:
Fixed javadoc to be correct xhtml.
* gnu/java/awt/peer/gtk/GtkArgList.java
(add): Use Boolean.valueOf() instead of new Boolean().
Index: gnu/java/awt/peer/ClasspathFontPeer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/awt/peer/ClasspathFontPeer.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 ClasspathFontPeer.java
--- gnu/java/awt/peer/ClasspathFontPeer.java 29 Jan 2004 18:21:01 -0000 1.2
+++ gnu/java/awt/peer/ClasspathFontPeer.java 11 Mar 2004 08:43:41 -0000
@@ -56,12 +56,12 @@
* <p><b>State kept by the peer:</b> a peer is generated for each Font
* object in the default implementation. If you wish to share peers between
* fonts, you will need to subclass both ClasspathFontPeer and
- * {@link ClasspathToolKit}.
+ * {@link ClasspathToolKit}.</p>
*
* <p><b>Thread Safety:</b> Methods of this interface may be called
* from arbitrary threads at any time. Implementations of the
* <code>ClasspathFontPeer</code> interface are required to perform
- * the necessary synchronization.
+ * the necessary synchronization.</p>
*
* @see java.awt.Font#getPeer
* @see java.awt.Toolkit#getFontPeer
Index: gnu/java/awt/peer/gtk/GtkArgList.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/awt/peer/gtk/GtkArgList.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 GtkArgList.java
--- gnu/java/awt/peer/gtk/GtkArgList.java 31 Jan 2003 17:54:13 -0000 1.1
+++ gnu/java/awt/peer/gtk/GtkArgList.java 11 Mar 2004 08:43:41 -0000
@@ -48,7 +48,7 @@
void add (String name, boolean value)
{
- addElement (new GtkArg (name, new Boolean (value)));
+ addElement (new GtkArg (name, Boolean.valueOf(value)));
}
void add (String name, int value)