jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JAnnotationArrayMember.java
changeset 27837 86d4f46e622a
parent 25871 b80b84e87032
equal deleted inserted replaced
27581:9fffb959eb41 27837:86d4f46e622a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   250         JAnnotationUse a = new JAnnotationUse(clazz);
   250         JAnnotationUse a = new JAnnotationUse(clazz);
   251         values.add(a);
   251         values.add(a);
   252         return a;
   252         return a;
   253     }
   253     }
   254 
   254 
       
   255 
       
   256     public boolean removeAnnotation(JAnnotationUse annotation) {
       
   257         return this.values.remove(annotation);
       
   258     }
       
   259 
   255     public <W extends JAnnotationWriter> W annotate2(Class<W> clazz) {
   260     public <W extends JAnnotationWriter> W annotate2(Class<W> clazz) {
   256         return TypedAnnotationWriter.create(clazz,this);
   261         return TypedAnnotationWriter.create(clazz,this);
   257     }
   262     }
   258 
   263 
   259     /**
   264     /**