renamed constant
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343105 13f79535-47bb-0310-9956-ffa450edef68master
parent
1e7bbd5bc6
commit
328f9208db
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue