added generics to hand-written code in model (merged from 2.2 branch r982716)

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@982719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Herve Boutemy 2010-08-05 18:10:39 +00:00
parent e96c8dab7e
commit 57e54dc4c0
1 changed files with 4 additions and 7 deletions

View File

@ -79,18 +79,16 @@ under the License.
{
boolean changed = false;
for ( java.util.Iterator i = sourceMetadata.getPlugins().iterator(); i.hasNext(); )
for ( Plugin plugin : sourceMetadata.getPlugins() )
{
Plugin plugin = (Plugin) i.next();
boolean found = false;
for ( java.util.Iterator it = getPlugins().iterator(); it.hasNext() && !found; )
for ( Plugin preExisting : getPlugins() )
{
Plugin preExisting = (Plugin) it.next();
if ( preExisting.getPrefix().equals( plugin.getPrefix() ) )
{
found = true;
break;
}
}
@ -121,9 +119,8 @@ under the License.
changed = true;
}
for ( java.util.Iterator i = versioning.getVersions().iterator(); i.hasNext(); )
for ( String version : versioning.getVersions() )
{
String version = (String) i.next();
if ( !v.getVersions().contains( version ) )
{
changed = true;