Skip to content

Commit

Permalink
Replace deprecated Jandex methods in RESTEasy Reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand authored and igorregis committed Oct 16, 2022
1 parent 1a4e213 commit d769a65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class NameBindingUtil {
* Returns the class names of the {@code @NameBinding} annotations or null if non are present
*/
public static Set<String> nameBindingNames(IndexView index, ClassInfo classInfo) {
return nameBindingNames(index, instanceDotNames(classInfo.classAnnotations()));
return nameBindingNames(index, instanceDotNames(classInfo.declaredAnnotations()));
}

public static Set<String> nameBindingNames(IndexView index, MethodInfo methodInfo, Set<String> forClass) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private Collection<AnnotationInstance> transform(AnnotationTargetKey key) {
private Collection<AnnotationInstance> getOriginalAnnotations(AnnotationTarget target) {
switch (target.kind()) {
case CLASS:
return target.asClass().classAnnotations();
return target.asClass().declaredAnnotations();
case METHOD:
// Note that the returning collection also contains method params annotations
return target.asMethod().annotations();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ interface TransformationContext {
AnnotationTarget getTarget();

/**
* The initial set of annotations instances corresponds to {@link org.jboss.jandex.ClassInfo#classAnnotations()},
* The initial set of annotations instances corresponds to {@link org.jboss.jandex.ClassInfo#declaredAnnotations()},
* {@link org.jboss.jandex.FieldInfo#annotations()} and {@link org.jboss.jandex.MethodInfo#annotations()} respectively.
*
* @return the annotation instances
Expand Down

0 comments on commit d769a65

Please sign in to comment.