[Mondrian] Typo in the Format.LiteralFormat.format(String, StringBuilder)
Alexander Korsukov
akorsukov at gmail.com
Thu Jan 28 06:19:15 EST 2010
Hello.
src\mondrian\src\main\mondrian\util\Format.java (line 428):
/**
* LiteralFormat is an implementation of {@link Format.BasicFormat} which
* prints a constant value, regardless of the value to be formatted.
*
* @see CompoundFormat
*/
static class LiteralFormat extends BasicFormat
{
String s;
LiteralFormat(String s)
{
this(FORMAT_LITERAL, s);
}
LiteralFormat(int code, String s)
{
super(code);
this.s = s;
}
void format(double d, StringBuilder buf) {
buf.append(s);
}
void format(long n, StringBuilder buf) {
buf.append(s);
}
void format(String s, StringBuilder buf) {
buf.append(s);
}
void format(Date date, StringBuilder buf) {
buf.append(s);
}
void format(Calendar calendar, StringBuilder buf) {
buf.append(s);
}
}
should be something like:
void format(String *str*, StringBuilder buf) {
buf.append(s);
}
--
Alexander
_____________________________________________________
mailto:akorsukov at gmail.com icq:8572488
(2E0A2052) xmpp:shko at jabber.ru<xmpp%3Ashko at jabber.ru>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20100128/4e26bdee/attachment.html
More information about the Mondrian
mailing list