Revert "Reformatted to code style"
Something creepy is going on @ localhost
This reverts commit 8858a32d7b5c59f230db137d8321ce2be254557b.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1517906 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/plugin/docck/CheckPluginDocumentationMojo.java b/src/main/java/org/apache/maven/plugin/docck/CheckPluginDocumentationMojo.java
index 3661e46..2304a95 100644
--- a/src/main/java/org/apache/maven/plugin/docck/CheckPluginDocumentationMojo.java
+++ b/src/main/java/org/apache/maven/plugin/docck/CheckPluginDocumentationMojo.java
@@ -80,7 +80,8 @@
if ( descriptor != null )
{
- @SuppressWarnings( "unchecked" ) List<MojoDescriptor> mojos = descriptor.getMojos();
+ @SuppressWarnings( "unchecked" )
+ List<MojoDescriptor> mojos = descriptor.getMojos();
// ensure that all mojo classes are documented
if ( mojos != null && !mojos.isEmpty() )
@@ -94,7 +95,8 @@
reporter.error( "Mojo: \'" + mojo.getGoal() + "\' is missing a description." );
}
- @SuppressWarnings( "unchecked" ) List<Parameter> params = mojo.getParameters();
+ @SuppressWarnings( "unchecked" )
+ List<Parameter> params = mojo.getParameters();
// ensure that all parameters are documented
if ( params != null && !params.isEmpty() )
@@ -108,9 +110,8 @@
if ( paramDescription == null
|| paramDescription.trim().length() < MIN_DESCRIPTION_LENGTH )
{
- reporter.error(
- "Parameter: \'" + param.getName() + "\' in mojo: \'" + mojo.getGoal()
- + "\' is missing a description." );
+ reporter.error( "Parameter: \'" + param.getName() + "\' in mojo: \'"
+ + mojo.getGoal() + "\' is missing a description." );
}
}
}
@@ -149,30 +150,30 @@
String siteHtml = IOUtil.toString( streamReader );
- if ( !siteHtml.contains( "href=\"index.html\"" ) )
+ if (!siteHtml.contains("href=\"index.html\""))
{
reporter.error( "site.xml is missing the link to: index.html \"Introduction\"." );
}
- if ( !siteHtml.contains( "href=\"usage.html\"" ) )
+ if (!siteHtml.contains("href=\"usage.html\""))
{
reporter.error( "site.xml is missing the link to: usage.html \"Usage\"." );
}
- if ( !siteHtml.contains( "href=\"plugin-info.html\"" ) )
+ if (!siteHtml.contains("href=\"plugin-info.html\""))
{
reporter.error( "site.xml is missing the link to: plugin-info.html \"Goals\"." );
}
- if ( !siteHtml.contains( "href=\"faq.html\"" ) )
+ if (!siteHtml.contains("href=\"faq.html\""))
{
reporter.error( "site.xml is missing the link to: faq.html \"FAQ\"." );
}
}
catch ( IOException e )
{
- reporter.error(
- "Unable to read site.xml file: \'" + siteXml.getAbsolutePath() + "\'.\nError: " + e.getMessage() );
+ reporter.error( "Unable to read site.xml file: \'" + siteXml.getAbsolutePath()
+ + "\'.\nError: " + e.getMessage() );
}
finally
{
@@ -193,11 +194,12 @@
}
// check for **/examples/**.(apt|html|xml)[.vm] or **/example*.(apt|html|xml)[.vm]
- if ( !findFiles( projectSiteDirectory, "**/examples/*" ) && !findFiles( projectSiteDirectory, "**/example*" ) )
+ if ( !findFiles( projectSiteDirectory, "**/examples/*" )
+ && !findFiles( projectSiteDirectory, "**/example*" ) )
{
reporter.error( "There are no example files in your site directory (in apt|html|xml[.vm] format)."
- + " They should either be called \'example*.(apt|html|xml)[.vm]\'"
- + " or they should be located in the \'examples\' directory." );
+ + " They should either be called \'example*.(apt|html|xml)[.vm]\'"
+ + " or they should be located in the \'examples\' directory." );
}
if ( !findFiles( projectSiteDirectory, "faq" ) )
@@ -217,7 +219,8 @@
{
List<String> expectedPlugins = getRequiredPlugins();
- @SuppressWarnings( "unchecked" ) List<ReportPlugin> reportPlugins = project.getReportPlugins();
+ @SuppressWarnings( "unchecked" )
+ List<ReportPlugin> reportPlugins = project.getReportPlugins();
if ( reportPlugins != null && reportPlugins.size() > 0 )
{
for ( ReportPlugin plugin : reportPlugins )