diff --git a/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java b/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java index 77dbad8bcb..eb17b6fce3 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java +++ b/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java @@ -119,7 +119,7 @@ public class MavenSession public List getSortedProjects() { - return rpm.getProjectsSortedByDependency(); + return rpm.getSortedProjects(); } public String getExecutionRootDirectory() diff --git a/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java b/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java index 6f13f7f597..b464999c10 100644 --- a/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java +++ b/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java @@ -148,8 +148,7 @@ public class PluginParameterExpressionEvaluatorTest MojoExecution mojoExecution = new MojoExecution( mojo ); - return (ExpressionEvaluator) new PluginParameterExpressionEvaluator( session, mojoExecution, null, - container.getLogger(), project ); + return new PluginParameterExpressionEvaluator( session, mojoExecution, null, container.getLogger(), project ); } protected Artifact createArtifact( String groupId, String artifactId, String version )