From 71dd7f3d2a4bf5886cec9849ae2dae70dda95962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Sat, 2 Feb 2013 16:52:16 +0100 Subject: [PATCH] code formatting --- .../src/main/java/org/apache/maven/DefaultMaven.java | 9 +++++---- .../apache/maven/execution/MavenExecutionRequest.java | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java index a6e11e8c3e..d85f1ac6a8 100644 --- a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java @@ -130,7 +130,7 @@ public class DefaultMaven @Requirement private RepositorySystem repoSystem; - @Requirement (optional = true, hint = "simple") + @Requirement( optional = true, hint = "simple" ) private LocalRepositoryManagerFactory simpleLocalRepositoryManagerFactory; @Requirement @@ -358,7 +358,7 @@ public class DefaultMaven LocalRepository localRepo = new LocalRepository( request.getLocalRepository().getBasedir() ); - if (request.isUseSimpleLocalRepostoryManager()) + if ( request.isUseSimpleLocalRepostoryManager() ) { try { @@ -367,11 +367,12 @@ public class DefaultMaven catch ( NoLocalRepositoryManagerException e ) { - logger.warn( "fail to configure simple local repository manager back to default" ); + logger.warn( "Failed to configure simple local repository manager: back to default" ); session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( localRepo ) ); } } - else { + else + { session.setLocalRepositoryManager( repoSystem.newLocalRepositoryManager( localRepo ) ); } diff --git a/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java b/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java index 5ab11b3cae..5bd839a296 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java +++ b/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java @@ -291,6 +291,6 @@ public interface MavenExecutionRequest /** * @since 3.1 */ - MavenExecutionRequest setUseSimpleLocalRepostoryManager(boolean useSimpleLocalRepostoryManager); + MavenExecutionRequest setUseSimpleLocalRepostoryManager( boolean useSimpleLocalRepostoryManager ); }