Fixed a class cast exception that shows up in mercury use of transformer. Regression from previous refactor.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@746135 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2009-02-20 04:49:53 +00:00
parent 70895b5f43
commit b1638bbbe7
1 changed files with 3 additions and 6 deletions

View File

@ -32,6 +32,7 @@ import org.apache.maven.project.builder.factories.ArtifactModelContainerFactory;
import org.apache.maven.project.builder.factories.ExclusionModelContainerFactory;
import org.apache.maven.project.builder.PomTransformer;
import org.apache.maven.project.builder.ProjectUri;
import org.apache.maven.project.builder.PomClassicDomainModel;
import org.apache.maven.project.builder.profile.ProfileContext;
import org.apache.maven.shared.model.DataSourceException;
import org.apache.maven.shared.model.DomainModel;
@ -46,7 +47,7 @@ import org.apache.maven.shared.model.impl.DefaultModelDataSource;
* Provides a wrapper for the maven model.
*/
public final class MavenDomainModel
implements DomainModel
extends PomClassicDomainModel
{
/**
@ -91,11 +92,7 @@ public final class MavenDomainModel
public MavenDomainModel( List<ModelProperty> modelProperties )
throws IOException
{
if ( modelProperties == null )
{
throw new IllegalArgumentException( "modelProperties: null" );
}
super(modelProperties);
this.modelProperties = new ArrayList<ModelProperty>( modelProperties );
}