> The builders look good. I was able to subclass ToStringStyle to get
> customized formatting, which was my chief concern. I do think the
> javadocs for the ToStringBuilder and associated classes should be
> expanded to make it easier to implement custom formatting, without
> someone needing to wade through the code to figure it out (though the
> wading is not too difficult.
>
> I have one question about ToStringStyle. I'm wondering why it contains
> protected fields that can be accessed directly by subclasses, as opposed
> to making them private with accessor methods.

The problem is that I need immutable subclasses of ToStringStyle. I have
however, changed ToStringStyle to have protected getters and setters with
private fields. StandardToStringStyle now just makes the protected methods
public. This provides stronger protection for ToStringStyle.

Stephen


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to