[jboss-jira] [JBoss JIRA] (WFLY-1736) CommandLineArgumentUsage class substring value discarded

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Wed Oct 2 11:47:03 EDT 2013


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

Alexey Loubyansky updated WFLY-1736:
------------------------------------

       Assignee: Brian Stansberry  (was: Alexey Loubyansky)
    Component/s: Domain Management
                     (was: CLI)

    
> CommandLineArgumentUsage class substring value discarded
> --------------------------------------------------------
>
>                 Key: WFLY-1736
>                 URL: https://issues.jboss.org/browse/WFLY-1736
>             Project: WildFly
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 8.0.0.Alpha4
>            Reporter: Cheng Fang
>            Assignee: Brian Stansberry
>
> CommandLineArgumentUsage class has a substring call but return value discarded:
> {code}
> if( input.get(0).length() > width ){
>                     String tooLong = input.remove(0);
>                     tooLong.substring(0, width-5);
>                     input.add("Command removed. Too long.");
>                 }
> {code}
> FindBugs also finds a static field should be final:
> {code}
> protected static List<String> instructions = new ArrayList<String>();
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list