renamed constant

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343105 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2012-05-27 21:30:35 +00:00
parent 1e7bbd5bc6
commit 328f9208db
3 changed files with 4 additions and 4 deletions

View File

@ -37,10 +37,10 @@ public interface MojoAnnotationsScanner
{
String ROLE = MojoAnnotationsScanner.class.getName();
static final List<String> acceptedClassLevelAnnotationClasses =
static final List<String> CLASS_LEVEL_ANNOTATIONS =
Arrays.asList( Mojo.class.getName(), Execute.class.getName() );
static final List<String> acceptedFieldLevelAnnotationClasses =
static final List<String> FIELD_LEVEL_ANNOTATIONS =
Arrays.asList( Parameter.class.getName(), Component.class.getName() );
Map<String, MojoAnnotatedClass> scan( MojoAnnotationsScannerRequest request )

View File

@ -114,7 +114,7 @@ public class MojoClassVisitor
{
logger.debug( "MojoClassVisitor#visitAnnotation" );
String annotationClassName = Type.getType( desc ).getClassName();
if ( !MojoAnnotationsScanner.acceptedClassLevelAnnotationClasses.contains( annotationClassName ) )
if ( !MojoAnnotationsScanner.CLASS_LEVEL_ANNOTATIONS.contains( annotationClassName ) )
{
return null;
}

View File

@ -62,7 +62,7 @@ public class MojoFieldVisitor
{
logger.debug( "MojoFieldVisitor#visitAnnotation:" + desc );
String annotationClassName = Type.getType( desc ).getClassName();
if ( !MojoAnnotationsScanner.acceptedFieldLevelAnnotationClasses.contains( annotationClassName ) )
if ( !MojoAnnotationsScanner.FIELD_LEVEL_ANNOTATIONS.contains( annotationClassName ) )
{
return null;
}