> From: Niclas Hedhman [mailto:[EMAIL PROTECTED] 
> 
> Verbosity Contest and the Winner is LEO S.! :o)

But which Leo S? Some more verbosity would have helped here, too... :)

(The real bastard thing about the put(key,null) for attributes behavior
is
that the DefaultConfigurationSerializer will choke on it with a
NullPointerException.)

OK, here's a condensed version - using more shaky Java stuff than most
people consider healthy:

    if( null != value )
    {
        (m_attributes = ( m_attributes == null ? new HashMap() :
m_attributes )).put( name, value );
    }
    else if( null != m_attributes )
    {
        m_attributes.remove( name );
    }

In this case, maintenance programmers may choke on it with an 
OhGodNoException when they suspect there's a bug in there somewhere.

/LS



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to