[lang] ReflectionToStringBuilder.toString(null) throws exception by design
Javadoc updates.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137859 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2004-07-01 17:10:47 +00:00
parent 14164d88eb
commit eec2c4c798
3 changed files with 9 additions and 16 deletions

View File

@ -488,8 +488,7 @@ public ReflectionToStringBuilder(Object object, ToStringStyle style) {
* </p>
*
* @param object
* the Object to build a <code>toString</code> for, must not
* be <code>null</code>
* the Object to build a <code>toString</code> for
* @param style
* the style of the <code>toString</code> to create, may be
* <code>null</code>
@ -509,8 +508,7 @@ public ReflectionToStringBuilder(Object object, ToStringStyle style, StringBuffe
* {@link #ReflectionToStringBuilder(Object,ToStringStyle,StringBuffer,Class,boolean,boolean)}.
*
* @param object
* the Object to build a <code>toString</code> for, must not
* be <code>null</code>
* the Object to build a <code>toString</code> for
* @param style
* the style of the <code>toString</code> to create, may be
* <code>null</code>
@ -532,8 +530,7 @@ public ReflectionToStringBuilder(Object object, ToStringStyle style, StringBuffe
* Constructor.
*
* @param object
* the Object to build a <code>toString</code> for, must not
* be <code>null</code>
* the Object to build a <code>toString</code> for
* @param style
* the style of the <code>toString</code> to create, may be
* <code>null</code>

View File

@ -87,7 +87,7 @@
* @author Gary Gregory
* @author Pete Gieser
* @since 1.0
* @version $Id: ToStringBuilder.java,v 1.33 2004/06/30 18:21:49 ggregory Exp $
* @version $Id: ToStringBuilder.java,v 1.34 2004/07/01 17:10:47 ggregory Exp $
*/
public class ToStringBuilder {
@ -189,8 +189,7 @@ public static void setDefaultStyle(ToStringStyle style) {
* <p>This constructor outputs using the default style set with
* <code>setDefaultStyle</code>.</p>
*
* @param object the Object to build a <code>toString</code> for,
* must not be <code>null</code>
* @param object the Object to build a <code>toString</code> for
* @throws IllegalArgumentException if the Object passed in is
* <code>null</code>
*/
@ -204,8 +203,7 @@ public ToStringBuilder(Object object) {
*
* <p>If the style is <code>null</code>, the default style is used.</p>
*
* @param object the Object to build a <code>toString</code> for,
* must not be <code>null</code>
* @param object the Object to build a <code>toString</code> for
* @param style the style of the <code>toString</code> to create,
* may be <code>null</code>
* @throws IllegalArgumentException if the Object passed in is
@ -222,8 +220,7 @@ public ToStringBuilder(Object object, ToStringStyle style) {
*
* <p>If the buffer is <code>null</code>, a new one is created.</p>
*
* @param object the Object to build a <code>toString</code> for,
* must not be <code>null</code>
* @param object the Object to build a <code>toString</code> for
* @param style the style of the <code>toString</code> to create,
* may be <code>null</code>
* @param buffer the <code>StringBuffer</code> to populate, may be

View File

@ -48,7 +48,7 @@
* @author Gary Gregory
* @author Pete Gieser
* @since 1.0
* @version $Id: ToStringStyle.java,v 1.30 2004/06/30 18:21:49 ggregory Exp $
* @version $Id: ToStringStyle.java,v 1.31 2004/07/01 17:10:47 ggregory Exp $
*/
public abstract class ToStringStyle implements Serializable {
@ -230,8 +230,7 @@ public void appendToString(StringBuffer buffer, String toString) {
* <p>Append to the <code>toString</code> the start of data indicator.</p>
*
* @param buffer the <code>StringBuffer</code> to populate
* @param object the <code>Object</code> to build a
* <code>toString</code> for, must not be <code>null</code>
* @param object the <code>Object</code> to build a <code>toString</code> for
*/
public void appendStart(StringBuffer buffer, Object object) {
if (object != null) {