Just fix an annoying error where assigning to a parameter.

This commit is contained in:
Oliver Burn 2006-07-02 10:41:29 +00:00
parent 199d3003ae
commit 302f80bd65
1 changed files with 5 additions and 6 deletions

View File

@ -402,7 +402,7 @@ final class StrArrayConverter extends AbstractArrayConverter
* @throws NullPointerException
* if <code>svalue</code> is <code>null</code>
*/
protected List parseElements(String aValue)
protected List parseElements(final String aValue)
throws NullPointerException
{
// Validate the passed argument
@ -411,13 +411,12 @@ final class StrArrayConverter extends AbstractArrayConverter
}
// Trim any matching '{' and '}' delimiters
aValue = aValue.trim();
if (aValue.startsWith("{") && aValue.endsWith("}")) {
aValue = aValue.substring(1, aValue.length() - 1);
String str = aValue.trim();
if (str.startsWith("{") && str.endsWith("}")) {
str = str.substring(1, str.length() - 1);
}
final StringTokenizer st = new StringTokenizer(aValue, ",");
final StringTokenizer st = new StringTokenizer(str, ",");
final List retVal = new ArrayList();
while (st.hasMoreTokens()) {