[kaffe] CVS kaffe (kaz): libraries/javalib/java/text/MessageFormat.java
Kaffe CVS
cvs-commits at kaffe.org
Mon Jun 21 15:07:26 PDT 2004
PatchSet 4854
Date: 2004/06/21 22:01:28
Author: kaz
Branch: HEAD
Tag: (none)
Log:
2004-06-21 Ito Kazumitsu <kaz at maczuka.gcd.org>
* libraries/javalib/java/text/MessageFormat.java
(format (Object singleArg, StringBuffer, FieldPosition fpos)):
This should be equivalent to format((Object[]) singleArg,
appendBuf, fpos).
Members:
ChangeLog:1.2421->1.2422
libraries/javalib/java/text/MessageFormat.java:1.27->1.28
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2421 kaffe/ChangeLog:1.2422
--- kaffe/ChangeLog:1.2421 Mon Jun 21 17:33:54 2004
+++ kaffe/ChangeLog Mon Jun 21 22:01:28 2004
@@ -1,3 +1,10 @@
+2004-06-21 Ito Kazumitsu <kaz at maczuka.gcd.org>
+
+ * libraries/javalib/java/text/MessageFormat.java
+ (format (Object singleArg, StringBuffer, FieldPosition fpos)):
+ This should be equivalent to format((Object[]) singleArg,
+ appendBuf, fpos).
+
2004-06-21 Dalibor Topic <robilad at kaffe.org>
* configure.ac:
Index: kaffe/libraries/javalib/java/text/MessageFormat.java
diff -u kaffe/libraries/javalib/java/text/MessageFormat.java:1.27 kaffe/libraries/javalib/java/text/MessageFormat.java:1.28
--- kaffe/libraries/javalib/java/text/MessageFormat.java:1.27 Tue Jun 15 21:55:46 2004
+++ kaffe/libraries/javalib/java/text/MessageFormat.java Mon Jun 21 22:01:30 2004
@@ -504,28 +504,16 @@
/**
* Returns the pattern with the formatted objects.
+ * This is equivalent to format((Object[]) singleArg, appendBuf, fpos)
*
- * @param source The object to be formatted.
- * @param result The StringBuffer where the text is appened.
+ * @param singleArg The object to be formatted.
+ * @param appendBuf The StringBuffer where the text is appened.
* @param fpos A FieldPosition object (it is ignored).
*/
public final StringBuffer format (Object singleArg, StringBuffer appendBuf,
FieldPosition fpos)
{
- Object[] args;
-
- if (singleArg instanceof Object[])
- {
- // This isn't specified in any manual, but it follows the
- // JDK implementation.
- args = (Object[]) singleArg;
- }
- else
- {
- args = new Object[1];
- args[0] = singleArg;
- }
- return format (args, appendBuf, fpos);
+ return format((Object[]) singleArg, appendBuf, fpos);
}
/**
More information about the kaffe
mailing list