o Fix errors reported by Checkstyle.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@670419 13f79535-47bb-0310-9956-ffa450edef68
master
Dennis Lundberg 2008-06-22 21:52:24 +00:00
parent 907ba5d562
commit 5df22c546d
2 changed files with 14 additions and 15 deletions

View File

@ -392,18 +392,14 @@ public class PluginReport
tableCell( getBundle( locale ).getString( "report.plugin.systemrequirements.memory" ) ); tableCell( getBundle( locale ).getString( "report.plugin.systemrequirements.memory" ) );
tableCell( ( StringUtils.isNotEmpty( requirements.getMemory() ) tableCell( ( StringUtils.isNotEmpty( requirements.getMemory() )
? requirements.getMemory() ? requirements.getMemory()
: getBundle( locale ) : getBundle( locale ).getString( "report.plugin.systemrequirements.nominimum" ) ) );
.getString(
"report.plugin.systemrequirements.nominimum" ) ) );
sink.tableRow_(); sink.tableRow_();
sink.tableRow(); sink.tableRow();
tableCell( getBundle( locale ).getString( "report.plugin.systemrequirements.diskspace" ) ); tableCell( getBundle( locale ).getString( "report.plugin.systemrequirements.diskspace" ) );
tableCell( ( StringUtils.isNotEmpty( requirements.getDiskSpace() ) tableCell( ( StringUtils.isNotEmpty( requirements.getDiskSpace() )
? requirements.getDiskSpace() ? requirements.getDiskSpace()
: getBundle( locale ) : getBundle( locale ).getString( "report.plugin.systemrequirements.nominimum" ) ) );
.getString(
"report.plugin.systemrequirements.nominimum" ) ) );
sink.tableRow_(); sink.tableRow_();
if ( requirements.getOthers() != null && requirements.getOthers().size() > 0 ) if ( requirements.getOthers() != null && requirements.getOthers().size() > 0 )
@ -434,7 +430,8 @@ public class PluginReport
sb.append( "<project>" ).append( '\n' ); sb.append( "<project>" ).append( '\n' );
sb.append( " ..." ).append( '\n' ); sb.append( " ..." ).append( '\n' );
sb.append( " <build>" ).append( '\n' ); sb.append( " <build>" ).append( '\n' );
sb.append( " <!-- " + getBundle( locale ).getString( "report.plugin.usage.pluginManagement" ) + " -->" ).append( '\n' ); sb.append( " <!-- " + getBundle( locale ).getString( "report.plugin.usage.pluginManagement" ) + " -->" )
.append( '\n' );
sb.append( " <pluginManagement>" ).append( '\n' ); sb.append( " <pluginManagement>" ).append( '\n' );
sb.append( " <plugins>" ).append( '\n' ); sb.append( " <plugins>" ).append( '\n' );
sb.append( " <plugin>" ).append( '\n' ); sb.append( " <plugin>" ).append( '\n' );
@ -448,7 +445,8 @@ public class PluginReport
sb.append( " ..." ).append( '\n' ); sb.append( " ..." ).append( '\n' );
sb.append( " </plugins>" ).append( '\n' ); sb.append( " </plugins>" ).append( '\n' );
sb.append( " </pluginManagement>" ).append( '\n' ); sb.append( " </pluginManagement>" ).append( '\n' );
sb.append( " <!-- " + getBundle( locale ).getString( "report.plugin.usage.plugins" ) + " -->" ).append( '\n' ); sb.append( " <!-- " + getBundle( locale ).getString( "report.plugin.usage.plugins" ) + " -->" )
.append( '\n' );
sb.append( " <plugins>" ).append( '\n' ); sb.append( " <plugins>" ).append( '\n' );
sb.append( " <plugin>" ).append( '\n' ); sb.append( " <plugin>" ).append( '\n' );
sb.append( " <groupId>" ).append( pluginDescriptor.getGroupId() ).append( "</groupId>" ) sb.append( " <groupId>" ).append( pluginDescriptor.getGroupId() ).append( "</groupId>" )
@ -465,7 +463,8 @@ public class PluginReport
if ( hasMavenReport ) if ( hasMavenReport )
{ {
sb.append( " ..." ).append( '\n' ); sb.append( " ..." ).append( '\n' );
sb.append( " <!-- " + getBundle( locale ).getString( "report.plugin.usage.reporting" ) + " -->" ).append( '\n' ); sb.append( " <!-- " + getBundle( locale ).getString( "report.plugin.usage.reporting" ) + " -->" )
.append( '\n' );
sb.append( " <reporting>" ).append( '\n' ); sb.append( " <reporting>" ).append( '\n' );
sb.append( " <plugins>" ).append( '\n' ); sb.append( " <plugins>" ).append( '\n' );
sb.append( " <plugin>" ).append( '\n' ); sb.append( " <plugin>" ).append( '\n' );

View File

@ -130,8 +130,8 @@ public class UpdatePluginRegistryMojo
if ( TrackableBase.GLOBAL_LEVEL.equals( plugin.getSourceLevel() ) ) if ( TrackableBase.GLOBAL_LEVEL.equals( plugin.getSourceLevel() ) )
{ {
// do nothing. We don't rewrite the globals, under any circumstances. // do nothing. We don't rewrite the globals, under any circumstances.
getLog().warn( "Cannot update registered version for plugin {" + groupId + ":" + artifactId + getLog().warn( "Cannot update registered version for plugin {" + groupId + ":" + artifactId
"}; it is specified in the global registry." ); + "}; it is specified in the global registry." );
} }
else else
{ {
@ -181,8 +181,8 @@ public class UpdatePluginRegistryMojo
} }
catch ( IOException e ) catch ( IOException e )
{ {
getLog().warn( "Cannot rewrite user-level plugin-registry.xml with new plugin version of plugin: \'" + getLog().warn( "Cannot rewrite user-level plugin-registry.xml with new plugin version of plugin: \'"
groupId + ":" + artifactId + "\'.", e ); + groupId + ":" + artifactId + "\'.", e );
} }
finally finally
{ {