Skip to Content.
Sympa Menu

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

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT>
  • To: Steve Loughran <steve.loughran AT>
  • Cc: xom-interest <xom-interest AT>
  • Subject: Re: [XOM-interest] why is Element.toString() final?
  • Date: Fri, 09 Dec 2005 08:19:31 -0500

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

It's final because everything should be final unless and until there's a clear and compelling use case for subclassing/overriding it. So far no one has demonstrated such a use case or shown a need for overriding it. if someone does, then I'd consider making it non-final.

´╗┐Elliotte Rusty Harold elharo AT
XML in a Nutshell 3rd Edition Just Published!

Archive powered by MHonArc 2.6.24.

Top of Page