mirror of https://github.com/apache/archiva.git
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:
parent
413d9e641b
commit
80c3274cd3
|
@ -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] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue