Component state - Bad toString() method

This commit is contained in:
Emmanuel BENOîT 2015-09-15 16:45:03 +02:00
parent 53128c5e77
commit cced54a9fc

View file

@ -66,12 +66,12 @@ public final class ComponentState
{ {
StringBuilder sb = new StringBuilder( ); StringBuilder sb = new StringBuilder( );
if ( this.name == null ) { if ( this.name == null ) {
sb.append( "anonymous component " ); sb.append( "anonymous component" );
} else { } else {
sb.append( "component '" ).append( this.name ).append( "' " ); sb.append( "component '" ).append( this.name ).append( "'" );
} }
sb.append( " of type " ).append( this.component.getClass( ).getCanonicalName( ) ); sb.append( " of type " ).append( this.component.getClass( ).getCanonicalName( ) );
return super.toString( ); return sb.toString( );
} }