Buggy code:
public final class AnnotationsManager { public static final String ANNOTATION_DEFINITION = "annotationDefinition" ; public static final String ANNOTATION_CATEGORY = "annotationCategory" ; public static final String ANNOTATION_INITIALIZER = "annotationInitializer" ; public static final String ANNOTATION_PROCESSOR = "annotationProcessor" ; public static final String ANNOTATION = "annotation" ; private static List < AnnotationDefinition > annotationCache = null ; private static Map < String , String > annotationCategoryCache = null ; private static Map < String , IConfigurationElement > annotationInitializerCache = null ; private static Map < String , List < IConfigurationElement > > annotationProcessorCache = null ; private static Map < String , List < AnnotationDefinition > > annotationsByCategoryMap = null ; private static Map < String , AnnotationDefinition > annotationClassNameToDefinitionMap ; private static Map < String , AnnotationDefinition > annotationSimpleNameToDefinitionMap ; private static Map < String , AnnotationDefinition > annotationQualifiedNameToDefinitionMap ; private static final String ATT_ID = "id" ; private static final String ATT_NAME = "name" ; private static final String ATT_CATEGORY = "category" ; private static final String ELEM_TARGET_FILTER = "targetFilter" ; private static final String ATT_TARGET = "target" ; private AnnotationsManager ( ) { } public static synchronized List < AnnotationDefinition > getAnnotations ( ) { } public static Object [ ] getAnnotations ( Object element ) { } private static synchronized Map < String , AnnotationDefinition > getAnnotationToClassNameDefinitionMap ( ) { } private static synchronized Map < String , AnnotationDefinition > getSimpleNameToDefinitionMap ( ) { } private static synchronized Map < String , AnnotationDefinition > getQualifiedNameToDefinitionMap ( ) { } @ SuppressWarnings ( "unchecked" ) public static AnnotationDefinition getAnnotationDefinitionForClass ( Object element ) { } public static IAnnotationAttributeInitializer getAnnotationAttributeInitializerForName ( Name name ) { } public static AnnotationDefinition getAnnotationDefinitionForClass ( Class < ? extends Annotation > annotationClass ) { } public static synchronized List < AnnotationDefinition > getAnnotationsByCategory ( String categoryName ) { } public static List < String > getAnnotationCategories ( ) { } public static String getAnnotationCategory ( String categoryId ) { } private static synchronized Map < String , String > getAnnotationCategoryCache ( ) { } public static synchronized Map < String , IConfigurationElement > getAnnotationInitializerCache ( ) { } public static synchronized Map < String , List < IConfigurationElement > > getAnnotationProcessorsCache ( ) { } public static String getAttributeValue ( IConfigurationElement configurationElement , String attributeName ) { } public static List < ElementType > getFilteredTargets ( IConfigurationElement configurationElement ) { } private static List < AnnotationDefinition > getAllAnnotationsForElement ( Object element ) throws JavaModelException { if ( element instanceof IPackageDeclaration ) { return AnnotationsManager . getAnnotationsForElementType ( ElementType . PACKAGE ) ; } if ( element instanceof IType ) { IType type = ( ( IType ) ( element ) ) ; if ( type . isAnnotation ( ) ) { return AnnotationsManager . getAnnotationsForElementType ( ElementType . ANNOTATION_TYPE ) ; } return AnnotationsManager . getAnnotationsForElementType ( ElementType . TYPE ) ; } if ( element instanceof IField ) { return AnnotationsManager . getAnnotationsForElementType ( ElementType . FIELD ) ; } if ( element instanceof IMethod ) { return AnnotationsManager . getAnnotationsForElementType ( ElementType . METHOD ) ; } if ( element instanceof SingleVariableDeclaration ) { return AnnotationsManager . getAnnotationsForElementType ( ElementType . PARAMETER ) ; } if ( element instanceof ILocalVariable ) { <START_BUG> return AnnotationsManager . getAnnotationsForElementType ( ElementType . LOCAL_VARIABLE ) ; <END_BUG> } if ( element instanceof IAnnotation ) { return AnnotationsManager . getAnnotationsForElementType ( ElementType . ANNOTATION_TYPE ) ; } return Collections . emptyList ( ) ; } private static List < AnnotationDefinition > getAnnotationsForElementType ( ElementType elementType ) { } private static void filterAnnotationsList ( Object element , List < AnnotationDefinition > annotationDefinitions ) throws JavaModelException { } private static boolean isClassRestricted ( IJavaElement javaElement , AnnotationDefinition annotationDefinition ) throws JavaModelException { } private static boolean isInterfaceRestricted ( IJavaElement javaElement , AnnotationDefinition annotationDefinition ) throws JavaModelException { } private static boolean isEnumRestricted ( IJavaElement javaElement , AnnotationDefinition annotationDefinition ) throws JavaModelException { } private static boolean isDeprecated ( AnnotationDefinition annotationDefinition ) { } }

Fix:
return AnnotationsManager . getAnnotationsForElementType ( ElementType . PARAMETER ) ;