fix sonar issue : Inefficient use of keySet iterator instead of entrySet iterator

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-14 08:48:36 +00:00
parent 413d9e641b
commit 80c3274cd3
1 changed files with 3 additions and 3 deletions

View File

@ -457,13 +457,13 @@ public abstract class AbstractProxyConnectorFormAction
} }
Map<String, Object> properties = connector.getProperties(); Map<String, Object> properties = connector.getProperties();
for ( String key : properties.keySet() ) for ( Map.Entry<String, Object> entry2 : properties.entrySet())
{ {
Object value = properties.get( key ); Object value = entry2.getValue();
if ( value.getClass().isArray() ) if ( value.getClass().isArray() )
{ {
String[] arr = (String[]) value; String[] arr = (String[]) value;
properties.put( key, arr[0] ); properties.put( entry2.getKey(), arr[0] );
} }
} }