remove redundant cast

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1212981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-12-11 08:48:07 +00:00
parent ed651a4d0e
commit c07f369278
1 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ public class MavenProjectTest
File f = getFileForClasspathResource( "canonical-pom.xml" );
MavenProject projectToClone = getProject( f );
MavenProject clonedProject = (MavenProject) projectToClone.clone();
MavenProject clonedProject = projectToClone.clone();
assertEquals( "maven-core", clonedProject.getArtifactId() );
Map<?, ?> clonedMap = clonedProject.getManagedVersionMap();
assertNotNull( "ManagedVersionMap not copied", clonedMap );
@ -118,7 +118,7 @@ public class MavenProjectTest
assertNotNull( "No ManagedVersionMap", map );
assertTrue( "ManagedVersionMap is empty", !map.isEmpty() );
MavenProject clonedProject = (MavenProject) projectToClone.clone();
MavenProject clonedProject = projectToClone.clone();
assertEquals( "maven-core", clonedProject.getArtifactId() );
Map<?, ?> clonedMap = clonedProject.getManagedVersionMap();
assertNotNull( "ManagedVersionMap not copied", clonedMap );
@ -153,7 +153,7 @@ public class MavenProjectTest
File f = getFileForClasspathResource( "distributionManagement-pom.xml" );
MavenProject projectToClone = getProject( f );
MavenProject clonedProject = (MavenProject) projectToClone.clone();
MavenProject clonedProject = projectToClone.clone();
assertNotNull( "clonedProject - distributionManagement", clonedProject.getDistributionManagementArtifactRepository() );
}
@ -167,7 +167,7 @@ public class MavenProjectTest
assertEquals( "Expecting 1 active profile", 1, activeProfilesOrig.size() );
MavenProject clonedProject = (MavenProject) projectToClone.clone();
MavenProject clonedProject = projectToClone.clone();
List<Profile> activeProfilesClone = clonedProject.getActiveProfiles();