You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2011/12/30 20:06:41 UTC
svn commit: r1225899 -
/maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
Author: hboutemy
Date: Fri Dec 30 19:06:41 2011
New Revision: 1225899
URL: http://svn.apache.org/viewvc?rev=1225899&view=rev
Log:
more generics
Modified:
maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
Modified: maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java?rev=1225899&r1=1225898&r2=1225899&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java (original)
+++ maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java Fri Dec 30 19:06:41 2011
@@ -463,7 +463,7 @@ public abstract class AbstractSurefireMo
private Artifact getCommonArtifact()
{
- return (Artifact) getPluginArtifactMap().get( "org.apache.maven.surefire:maven-surefire-common" );
+ return getPluginArtifactMap().get( "org.apache.maven.surefire:maven-surefire-common" );
}
private StartupReportConfiguration getStartupReportConfiguration( String configChecksum )
@@ -571,7 +571,7 @@ public abstract class AbstractSurefireMo
throws MojoFailureException, InvalidVersionSpecificationException
{
// TODO: this is pretty manual, but I'd rather not require the plugin > dependencies section right now
- Artifact artifact = (Artifact) getProjectArtifactMap().get( getTestNGArtifactName() );
+ Artifact artifact = getProjectArtifactMap().get( getTestNGArtifactName() );
if ( artifact != null )
{
@@ -589,12 +589,12 @@ public abstract class AbstractSurefireMo
private Artifact getJunitArtifact()
{
- return (Artifact) getProjectArtifactMap().get( getJunitArtifactName() );
+ return getProjectArtifactMap().get( getJunitArtifactName() );
}
private Artifact getJunitDepArtifact()
{
- return (Artifact) getProjectArtifactMap().get( "junit:junit-dep" );
+ return getProjectArtifactMap().get( "junit:junit-dep" );
}
protected ForkStarter createForkStarter( ProviderInfo provider, ForkConfiguration forkConfiguration,
@@ -630,9 +630,9 @@ public abstract class AbstractSurefireMo
//noinspection ResultOfMethodCallIgnored
tmpDir.mkdirs();
- Artifact shadeFire = (Artifact) getPluginArtifactMap().get( "org.apache.maven.surefire:surefire-shadefire" );
+ Artifact shadeFire = getPluginArtifactMap().get( "org.apache.maven.surefire:surefire-shadefire" );
- surefireBooterArtifact = (Artifact) getPluginArtifactMap().get( "org.apache.maven.surefire:surefire-booter" );
+ surefireBooterArtifact = getPluginArtifactMap().get( "org.apache.maven.surefire:surefire-booter" );
if ( surefireBooterArtifact == null )
{
throw new RuntimeException( "Unable to locate surefire-booter in the list of plugin artifacts" );