public T add ( String str ) { requireNonNull ( str , JVM_OPTION_NOT_NULL_ERROR_MESSAGE ) ; String value = str . trim ( ) ; if ( isInvalidOption ( value ) ) { throw new IllegalArgumentException ( "a JVM option can't be empty and must start with '-'" ) ; } checkMandatoryOptionOverwrite ( value ) ; options . add ( value ) ; return castThis ( ) ; }
Add an option . Argument is trimmed before being added .