Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Bug in class Text

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Bug in class Text
  • Date: Thu, 12 Jun 2003 18:20:24 -0700

Hi,

Browsing through the d16 code I saw what it likely a small bug in class nu.xom.Text:

public final String toString() {

String value = getValue();
if (value.length() <= 40) {
return "[" + getClass().getName() + ": " + data + "]";
}

return "[" + getClass().getName() + ": " + value.substring(35)
+ "...]";
}

should probably read:

...
if (value.length() <= 40) {
return "[" + getClass().getName() + ": " + value + "]";
}
...

Cheers,
Wolfgang.





Archive powered by MHonArc 2.6.24.

Top of Page