[weld-issues] [JBoss JIRA] Closed: (WELDSE-13) Use the valditor's message in HelloWorld in SE Hello World Example

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Aug 12 06:42:49 EDT 2010


     [ https://jira.jboss.org/browse/WELDSE-13?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WELDSE-13.
---------------------------



> Use the valditor's message in HelloWorld in SE Hello World Example
> ------------------------------------------------------------------
>
>                 Key: WELDSE-13
>                 URL: https://jira.jboss.org/browse/WELDSE-13
>             Project: Weld support for Java SE
>          Issue Type: Feature Request
>         Environment: n/a
>            Reporter: Wolfgang Frech
>             Fix For: 1.0.1.Final
>
>
> It looks like an incomplete refactoring: 
> The CommandLineArgsValidator creates an error message, but the HellWorld class does not read the message from the validator, but prints its own (identical) message.
> Use
>            for (String message: argsValidator.getErrors())
>             System.out.println( message );
> instead of
> System.out.println( "Please provide just one argument: your first name" );
> in printHello
> by the way - cosmetic: use emptyList instead of deprecated EMPTY_LIST in CommandLineArgsValidator in SE Hello World Example

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list