o fixed checkstyle + updated javadoc

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684241 13f79535-47bb-0310-9956-ffa450edef68
master
Vincent Siveton 2008-08-09 12:16:04 +00:00
parent 65a52813c7
commit 5d38c8d3a8
2 changed files with 17 additions and 9 deletions

View File

@ -37,9 +37,9 @@ public class PluginMetadataParseException
private final String originalMessage;
/**
* @param metadataFile
* @param message
* @param cause
* @param metadataFile could be null
* @param message could be null
* @param cause could be null
*/
public PluginMetadataParseException( File metadataFile, String message, Throwable cause )
{
@ -50,8 +50,8 @@ public class PluginMetadataParseException
}
/**
* @param metadataFile
* @param message
* @param metadataFile could be null
* @param message could be null
*/
public PluginMetadataParseException( File metadataFile, String message )
{

View File

@ -44,6 +44,8 @@ import java.util.Set;
*/
public class PluginMetadataParser
{
/** Default implementation path which will be replaced in
* AbstractScriptedMojoDescriptorExtractor#extractMojoDescriptorsFromMetadata(Map, PluginDescriptor) */
public static final String IMPL_BASE_PLACEHOLDER = "<REPLACE-WITH-MOJO-PATH>";
/**
@ -96,6 +98,12 @@ public class PluginMetadataParser
return descriptors;
}
/**
* @param metadataFile not null
* @param mojo not null
* @return a mojo descriptor instance
* @throws PluginMetadataParseException if any
*/
private MojoDescriptor asDescriptor( File metadataFile, Mojo mojo )
throws PluginMetadataParseException
{
@ -151,8 +159,8 @@ public class PluginMetadataParser
if ( StringUtils.isEmpty( dParam.getName() ) )
{
throw new PluginMetadataParseException( metadataFile, "Mojo: \'" + mojo.getGoal() +
"\' has a parameter without either property or name attributes. Please specify one." );
throw new PluginMetadataParseException( metadataFile, "Mojo: \'" + mojo.getGoal()
+ "\' has a parameter without either property or name attributes. Please specify one." );
}
dParam.setRequired( param.isRequired() );
@ -165,8 +173,8 @@ public class PluginMetadataParser
catch ( DuplicateParameterException e )
{
throw new PluginMetadataParseException( metadataFile,
"Duplicate parameters detected for mojo: " + mojo.getGoal(),
e );
"Duplicate parameters detected for mojo: "
+ mojo.getGoal(), e );
}
}
}