mirror of https://github.com/apache/maven.git
Remove redundant casts
This commit is contained in:
parent
5f29be799f
commit
3929f55c31
|
@ -98,7 +98,7 @@ public final class ModelUtils
|
|||
if ( !handleAsInheritance || ( parentInherited == null )
|
||||
|| Boolean.valueOf( parentInherited ) )
|
||||
{
|
||||
Plugin childPlugin = (Plugin) childPlugins.get( parentPlugin.getKey() );
|
||||
Plugin childPlugin = childPlugins.get( parentPlugin.getKey() );
|
||||
|
||||
if ( ( childPlugin != null ) && !assembledPlugins.contains( childPlugin ) )
|
||||
{
|
||||
|
|
|
@ -432,7 +432,7 @@ public class ModelUtilsTest
|
|||
|
||||
// this block prevents MNG-1703
|
||||
assertEquals( 1, child.getDependencies().size() );
|
||||
Dependency dep2 = (Dependency) child.getDependencies().get( 0 );
|
||||
Dependency dep2 = child.getDependencies().get( 0 );
|
||||
assertEquals( dep.getManagementKey(), dep2.getManagementKey() );
|
||||
}
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ public class ProjectSorter
|
|||
vertices.put( project.getVersion(), dag.addVertex( projectId ) );
|
||||
}
|
||||
|
||||
for ( Vertex projectVertex : (List<Vertex>) dag.getVerticies() )
|
||||
for ( Vertex projectVertex : dag.getVerticies() )
|
||||
{
|
||||
String projectId = projectVertex.getLabel();
|
||||
|
||||
|
|
|
@ -464,7 +464,7 @@ public class MavenCli
|
|||
ClassRealm coreRealm = cliRequest.classWorld.getClassRealm( "plexus.core" );
|
||||
if ( coreRealm == null )
|
||||
{
|
||||
coreRealm = (ClassRealm) cliRequest.classWorld.getRealms().iterator().next();
|
||||
coreRealm = cliRequest.classWorld.getRealms().iterator().next();
|
||||
}
|
||||
|
||||
ClassRealm extRealm = cliRequest.classWorld.newRealm( "maven.ext", null );
|
||||
|
|
Loading…
Reference in New Issue