public void setAnnotation( String name, String value)
    {
    String annotation = StringUtils.trimToNull( name);
    if( annotation == null)
      {
      throw new IllegalArgumentException( "Annotation name must be non-blank");
      }
    if( value == null)
      {
      annotations_.remove( annotation);
      }
    else
      {
      annotations_.put( annotation, value);
      }
    }
public void setAnnotation ( String name , String value ) { String annotation = StringUtils . trimToNull ( name ) ; if ( annotation == null ) { throw new IllegalArgumentException ( "Annotation name must be non-blank" ) ; } if ( value == null ) { annotations_ . remove ( annotation ) ; } else { annotations_ . put ( annotation , value ) ; } }
Changes the value of the given annotation.