Author: ehillenius Date: Wed May 2 04:58:56 2007 New Revision: 534403 URL: http://svn.apache.org/viewvc?view=rev&rev=534403 Log: better toString
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/behavior/StringHeaderContributor.java Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/behavior/StringHeaderContributor.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/behavior/StringHeaderContributor.java?view=diff&rev=534403&r1=534402&r2=534403 ============================================================================== --- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/behavior/StringHeaderContributor.java (original) +++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/behavior/StringHeaderContributor.java Wed May 2 04:58:56 2007 @@ -169,7 +169,7 @@ */ public String toString() { - return "StringHeaderContributor[contribution=" + contributor.contribution.getObject() - + "]"; + Object string = contributor.contribution.getObject(); + return (string != null) ? string.toString() : ""; } }