Buggy code:
public final class AnnotationUtils { public static final String WEB_SERVICE = "WebService" ; public static final String WEB_METHOD = "WebMethod" ; public static final String WEB_PARAM = "WebParam" ; public static final String REQUEST_WRAPPER = "RequestWrapper" ; public static final String RESPONSE_WRAPPER = "ResponseWrapper" ; private static Map < String , String > ANNOTATION_TYPENAME_MAP = new HashMap < String , String > ( ) ; private AnnotationUtils ( ) { } public static TextChange getWebServiceAnnotationChange ( IType type , Java2WSDataModel model , TextFileChange textFileChange ) throws CoreException { } public static TextChange getWebMethodAnnotationChange ( IType type , IMethod method , TextFileChange textFileChange ) throws CoreException { } @ SuppressWarnings ( "unchecked" ) public static List < SingleVariableDeclaration > getMethodParameters ( IType type , final IMethod method ) { } public static TextChange getWebParamAnnotationChange ( IType type , final IMethod method , SingleVariableDeclaration parameter , TextFileChange textFileChange ) throws CoreException { } public static TextChange getRequestWrapperAnnotationChange ( IType type , IMethod method , TextFileChange textFileChange ) throws CoreException { } public static TextChange getResponseWrapperAnnotationChange ( IType type , IMethod method , TextFileChange textFileChange ) throws CoreException { } public static void getImportsChange ( ICompilationUnit compilationUnit , Java2WSDataModel model , TextFileChange textFileChange , boolean classOnly ) { } @ SuppressWarnings ( "unchecked" ) private static TextChange createTypeAnnotationChange ( ICompilationUnit source , CompilationUnit compilationUnit , ASTRewrite rewriter , Annotation annotation , TextFileChange textFileChange ) throws CoreException { } @ SuppressWarnings ( "unchecked" ) private static TextChange createMethodAnnotationChange ( ICompilationUnit source , CompilationUnit compilationUnit , ASTRewrite rewriter , IMethod method , Annotation annotation , TextFileChange textFileChange ) throws CoreException { } @ SuppressWarnings ( "unchecked" ) private static TextChange createMethodParameterAnnotationChange ( ICompilationUnit source , CompilationUnit compilationUnit , ASTRewrite rewriter , SingleVariableDeclaration singleVariableDeclaration , IMethod method , Annotation annotation , TextFileChange textFileChange ) throws CoreException { } public static CompilationUnit getASTParser ( ICompilationUnit source ) { } private static String getAnnotationName ( Annotation annotation ) { } private static boolean compareAnnotations ( Annotation newAnnotation , Annotation existingAnnotation ) { } @ SuppressWarnings ( "unchecked" ) private static boolean isAnnotationPresent ( BodyDeclaration bodyDeclaration , Annotation annatotationToAdd ) { } @ SuppressWarnings ( "unchecked" ) public static boolean isAnnotationPresent ( final IMethod method , final String annotationKey ) { } @ SuppressWarnings ( "unchecked" ) private static boolean isAnnotationPresent ( SingleVariableDeclaration parameter , Annotation annatotationToAdd ) { } private static boolean compareMethodParameters ( SingleVariableDeclaration paramOne , SingleVariableDeclaration paramTwo ) { } private static boolean compareModifiers ( List < IExtendedModifier > modifiers , String annotationKey ) { } public static Map < String , Boolean > getAnnotationMap ( Java2WSDataModel model ) { } public static Map < IMethod , Map < String , Boolean > > getMethodMap ( IType type , Java2WSDataModel model ) { Map < IMethod , Map < String , Boolean > > methodMap = new HashMap < IMethod , Map < String , Boolean > > ( ) ; try { IMethod [ ] methods = type . getMethods ( ) ; for ( IMethod method : methods ) { <START_BUG> if ( JDTUtils . isPublicSMethod ( method ) ) { <END_BUG> methodMap . put ( method , AnnotationUtils . getAnnotationMap ( model ) ) ; } } } catch ( JavaModelException jme ) { CXFCorePlugin . log ( jme . getStatus ( ) ) ; } return methodMap ; } }

Fix:
if ( JDTUtils . isPublicMethod ( method ) ) {