--- old/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JMethod.java 2014-11-25 12:16:50.582616198 +0000 +++ new/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JMethod.java 2014-11-25 12:16:50.510617067 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -267,6 +267,10 @@ return TypedAnnotationWriter.create(clazz,this); } + public boolean removeAnnotation(JAnnotationUse annotation) { + return this.annotations.remove(annotation); + } + public Collection annotations() { if (annotations == null) annotations = new ArrayList();