]> source.dussan.org Git - archiva.git/commitdiff
fix sonar issue : Inefficient use of keySet iterator instead of entrySet iterator
authorOlivier Lamy <olamy@apache.org>
Tue, 14 Jun 2011 08:48:36 +0000 (08:48 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 14 Jun 2011 08:48:36 +0000 (08:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135410 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/connectors/proxy/AbstractProxyConnectorFormAction.java

index 57baffa581cf59b465936e588bb839a707e46a1f..1e6831196872e5b3e82132b7fecdae6b942ce05b 100644 (file)
@@ -457,13 +457,13 @@ public abstract class AbstractProxyConnectorFormAction
                 }
 
                 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() )
                     {
                         String[] arr = (String[]) value;
-                        properties.put( key, arr[0] );
+                        properties.put( entry2.getKey(), arr[0] );
                     }
                 }