Ensured that the builder has a default style at all times by setting it

initially. [the setDefaultStyle method makes sur eit can't be set to null].

Hopefully this is an okay thing to do, it was breaking Tests.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137077 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2002-09-29 08:26:05 +00:00
parent a7aaefbef0
commit c367279525
1 changed files with 2 additions and 2 deletions

View File

@ -93,14 +93,14 @@ import java.lang.reflect.Modifier;
* passed into the constructor.
*
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
* @version $Id: ToStringBuilder.java,v 1.4 2002/09/28 10:44:51 scolebourne Exp $
* @version $Id: ToStringBuilder.java,v 1.5 2002/09/29 08:26:05 bayard Exp $
*/
public class ToStringBuilder {
/**
* The default style of output to use
*/
private static ToStringStyle defaultStyle;
private static ToStringStyle defaultStyle = ToStringStyle.DEFAULT_STYLE;
/**
* Current toString buffer
*/