From c367279525eb693d7396ed39ed5f98197a69762a Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Sun, 29 Sep 2002 08:26:05 +0000 Subject: [PATCH] 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 --- src/java/org/apache/commons/lang/builder/ToStringBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/lang/builder/ToStringBuilder.java b/src/java/org/apache/commons/lang/builder/ToStringBuilder.java index 8bec798c2..b10de7bcb 100644 --- a/src/java/org/apache/commons/lang/builder/ToStringBuilder.java +++ b/src/java/org/apache/commons/lang/builder/ToStringBuilder.java @@ -93,14 +93,14 @@ import java.lang.reflect.Modifier; * passed into the constructor. * * @author Stephen Colebourne - * @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 */