fix checkstyle errors
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@680848 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java b/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
index 8516d37..f9c3361 100644
--- a/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
+++ b/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
@@ -25,6 +25,9 @@
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
+/**
+ * @version $Id$
+ */
public abstract class AbstractDeployMojo
extends AbstractMojo
{
@@ -52,7 +55,7 @@
return deployer;
}
- public void setDeployer(ArtifactDeployer deployer)
+ public void setDeployer( ArtifactDeployer deployer )
{
this.deployer = deployer;
}
@@ -62,7 +65,7 @@
return localRepository;
}
- public void setLocalRepository(ArtifactRepository localRepository)
+ public void setLocalRepository( ArtifactRepository localRepository )
{
this.localRepository = localRepository;
}
diff --git a/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java b/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
index d38d83a..a9d8a36 100644
--- a/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
+++ b/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
@@ -178,8 +178,8 @@
}
else
{
- throw new MojoExecutionException(
- "The packaging for this project did not assign a file to the build artifact" );
+ String message = "The packaging for this project did not assign a file to the build artifact";
+ throw new MojoExecutionException( message );
}
}
@@ -201,9 +201,8 @@
{
if ( deploymentRepository == null && altDeploymentRepository == null )
{
- String msg =
- "Deployment failed: repository element was not specified in the pom inside"
- + " distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter";
+ String msg = "Deployment failed: repository element was not specified in the pom inside"
+ + " distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter";
throw new MojoExecutionException( msg );
}