code formatting

This commit is contained in:
Hervé Boutemy 2012-12-02 12:38:12 +01:00
parent ab86435af1
commit 71a8427df6
3 changed files with 11 additions and 11 deletions

View File

@ -133,8 +133,10 @@ public MavenExecutionPlan resolveBuildPlan( MavenSession session, MavenProject p
return executionPlan; return executionPlan;
} }
public void handleBuildError(final ReactorContext buildContext, final MavenSession rootSession, final MavenSession currentSession, public void handleBuildError( final ReactorContext buildContext, final MavenSession rootSession,
final MavenProject mavenProject, Exception e, final long buildStartTime) { final MavenSession currentSession, final MavenProject mavenProject, Exception e,
final long buildStartTime )
{
if ( e instanceof RuntimeException ) if ( e instanceof RuntimeException )
{ {
e = new InternalErrorException( "Internal error: " + e, e ); e = new InternalErrorException( "Internal error: " + e, e );
@ -185,5 +187,4 @@ public static String getKey( MavenProject project )
return project.getGroupId() + ':' + project.getArtifactId() + ':' + project.getVersion(); return project.getGroupId() + ':' + project.getArtifactId() + ':' + project.getVersion();
} }
} }

View File

@ -375,7 +375,8 @@ private Artifact findTestScopedArtifact( MavenProject upstreamProject )
return null; return null;
} }
private static boolean isThreadLockedAndEmpty(Artifact artifact){ private static boolean isThreadLockedAndEmpty( Artifact artifact )
{
return artifact instanceof ThreadLockedArtifact && !( (ThreadLockedArtifact) artifact ).hasReal(); return artifact instanceof ThreadLockedArtifact && !( (ThreadLockedArtifact) artifact ).hasReal();
} }
@ -483,8 +484,6 @@ public void resolveFromUpstream()
artifactInThis.setFile( upstream.getFile() ); artifactInThis.setFile( upstream.getFile() );
artifactInThis.setRepository( upstream.getRepository() ); artifactInThis.setRepository( upstream.getRepository() );
artifactInThis.setResolved( true ); // Or maybe upstream.isResolved().... artifactInThis.setResolved( true ); // Or maybe upstream.isResolved()....
} }
} }
} }