Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] why is Element.toString() final?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Steve Loughran <steve.loughran AT gmail.com>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] why is Element.toString() final?
  • Date: Fri, 9 Dec 2005 11:19:07 +0000

Given that it is primarily for debugging, why is Element.toString() final?

it stops subclasses extending it by doing things like including their
text value as part of the debug information, or printing other aspects
of their (custom) state.

-steve




Archive powered by MHonArc 2.6.24.

Top of Page