replace '"" +' construct with String.valueOf()

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339556 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2012-05-17 11:23:12 +00:00
parent 014281f0e5
commit 684e7110b1
1 changed files with 8 additions and 8 deletions

View File

@ -170,9 +170,9 @@ public class PluginDescriptorGenerator
GeneratorUtils.element( w, "goalPrefix", pluginDescriptor.getGoalPrefix() ); GeneratorUtils.element( w, "goalPrefix", pluginDescriptor.getGoalPrefix() );
GeneratorUtils.element( w, "isolatedRealm", "" + pluginDescriptor.isIsolatedRealm() ); GeneratorUtils.element( w, "isolatedRealm", String.valueOf( pluginDescriptor.isIsolatedRealm() ) );
GeneratorUtils.element( w, "inheritedByDefault", "" + pluginDescriptor.isInheritedByDefault() ); GeneratorUtils.element( w, "inheritedByDefault", String.valueOf( pluginDescriptor.isInheritedByDefault() ) );
w.startElement( "mojos" ); w.startElement( "mojos" );
@ -255,37 +255,37 @@ public class PluginDescriptorGenerator
// //
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
GeneratorUtils.element( w, "requiresDirectInvocation", "" + mojoDescriptor.isDirectInvocationOnly() ); GeneratorUtils.element( w, "requiresDirectInvocation", String.valueOf( mojoDescriptor.isDirectInvocationOnly() ) );
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// //
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
GeneratorUtils.element( w, "requiresProject", "" + mojoDescriptor.isProjectRequired() ); GeneratorUtils.element( w, "requiresProject", String.valueOf( mojoDescriptor.isProjectRequired() ) );
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// //
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
GeneratorUtils.element( w, "requiresReports", "" + mojoDescriptor.isRequiresReports() ); GeneratorUtils.element( w, "requiresReports", String.valueOf( mojoDescriptor.isRequiresReports() ) );
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// //
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
GeneratorUtils.element( w, "aggregator", "" + mojoDescriptor.isAggregator() ); GeneratorUtils.element( w, "aggregator", String.valueOf( mojoDescriptor.isAggregator() ) );
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// //
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
GeneratorUtils.element( w, "requiresOnline", "" + mojoDescriptor.isOnlineRequired() ); GeneratorUtils.element( w, "requiresOnline", String.valueOf( mojoDescriptor.isOnlineRequired() ) );
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// //
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
GeneratorUtils.element( w, "inheritedByDefault", "" + mojoDescriptor.isInheritedByDefault() ); GeneratorUtils.element( w, "inheritedByDefault", String.valueOf( mojoDescriptor.isInheritedByDefault() ) );
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// //