[jboss-jira] [JBoss JIRA] (WFLY-1736) CommandLineArgumentUsage class substring value discarded
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Mon Oct 7 17:41:02 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated WFLY-1736:
-----------------------------------
Fix Version/s: 8.0.0.CR1
> 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
> Fix For: 8.0.0.CR1
>
>
> 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