mirror of https://github.com/apache/maven.git
o Simplfied code
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@938491 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6c35e2d3cf
commit
dc09df4b99
|
@ -63,14 +63,14 @@ public class PluginDescriptorBuilder
|
|||
|
||||
if ( isolatedRealm != null )
|
||||
{
|
||||
pluginDescriptor.setIsolatedRealm( Boolean.valueOf( isolatedRealm ).booleanValue() );
|
||||
pluginDescriptor.setIsolatedRealm( Boolean.parseBoolean( isolatedRealm ) );
|
||||
}
|
||||
|
||||
String inheritedByDefault = c.getChild( "inheritedByDefault" ).getValue();
|
||||
|
||||
if ( inheritedByDefault != null )
|
||||
{
|
||||
pluginDescriptor.setInheritedByDefault( Boolean.valueOf( inheritedByDefault ).booleanValue() );
|
||||
pluginDescriptor.setInheritedByDefault( Boolean.parseBoolean( inheritedByDefault ) );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
@ -213,49 +213,49 @@ public class PluginDescriptorBuilder
|
|||
|
||||
if ( directInvocationOnly != null )
|
||||
{
|
||||
mojo.setDirectInvocationOnly( Boolean.valueOf( directInvocationOnly ).booleanValue() );
|
||||
mojo.setDirectInvocationOnly( Boolean.parseBoolean( directInvocationOnly ) );
|
||||
}
|
||||
|
||||
String requiresProject = c.getChild( "requiresProject" ).getValue();
|
||||
|
||||
if ( requiresProject != null )
|
||||
{
|
||||
mojo.setProjectRequired( Boolean.valueOf( requiresProject ).booleanValue() );
|
||||
mojo.setProjectRequired( Boolean.parseBoolean( requiresProject ) );
|
||||
}
|
||||
|
||||
String requiresReports = c.getChild( "requiresReports" ).getValue();
|
||||
|
||||
if ( requiresReports != null )
|
||||
{
|
||||
mojo.setRequiresReports( Boolean.valueOf( requiresReports ).booleanValue() );
|
||||
mojo.setRequiresReports( Boolean.parseBoolean( requiresReports ) );
|
||||
}
|
||||
|
||||
String aggregator = c.getChild( "aggregator" ).getValue();
|
||||
|
||||
if ( aggregator != null )
|
||||
{
|
||||
mojo.setAggregator( Boolean.valueOf( aggregator ).booleanValue() );
|
||||
mojo.setAggregator( Boolean.parseBoolean( aggregator ) );
|
||||
}
|
||||
|
||||
String requiresOnline = c.getChild( "requiresOnline" ).getValue();
|
||||
|
||||
if ( requiresOnline != null )
|
||||
{
|
||||
mojo.setOnlineRequired( Boolean.valueOf( requiresOnline ).booleanValue() );
|
||||
mojo.setOnlineRequired( Boolean.parseBoolean( requiresOnline ) );
|
||||
}
|
||||
|
||||
String inheritedByDefault = c.getChild( "inheritedByDefault" ).getValue();
|
||||
|
||||
if ( inheritedByDefault != null )
|
||||
{
|
||||
mojo.setInheritedByDefault( Boolean.valueOf( inheritedByDefault ).booleanValue() );
|
||||
mojo.setInheritedByDefault( Boolean.parseBoolean( inheritedByDefault ) );
|
||||
}
|
||||
|
||||
String threadSafe = c.getChild( "threadSafe" ).getValue();
|
||||
|
||||
if ( threadSafe != null )
|
||||
{
|
||||
mojo.setThreadSafe( Boolean.valueOf( threadSafe ).booleanValue() );
|
||||
mojo.setThreadSafe( Boolean.parseBoolean( threadSafe ) );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
@ -280,7 +280,7 @@ public class PluginDescriptorBuilder
|
|||
|
||||
String required = d.getChild( "required" ).getValue();
|
||||
|
||||
parameter.setRequired( Boolean.valueOf( required ).booleanValue() );
|
||||
parameter.setRequired( Boolean.parseBoolean( required ) );
|
||||
|
||||
PlexusConfiguration editableConfig = d.getChild( "editable" );
|
||||
|
||||
|
@ -289,7 +289,7 @@ public class PluginDescriptorBuilder
|
|||
{
|
||||
String editable = d.getChild( "editable" ).getValue();
|
||||
|
||||
parameter.setEditable( editable == null || Boolean.valueOf( editable ).booleanValue() );
|
||||
parameter.setEditable( editable == null || Boolean.parseBoolean( editable ) );
|
||||
}
|
||||
|
||||
parameter.setDescription( d.getChild( "description" ).getValue() );
|
||||
|
|
Loading…
Reference in New Issue