Skip to content

Commit

Permalink
[4.x] Replace deprecated classInfo.classAnnotation(DotName) on classI…
Browse files Browse the repository at this point in the history
…nfo.declaredAnnotation(DotName) (#8417)
  • Loading branch information
Captain1653 authored Feb 26, 2024
1 parent cde5595 commit 08ad2a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -191,7 +191,7 @@ IndexView index() {

AnnotationInstance deepScanClassLevelLraAnnotation(ClassInfo classInfo) {
if (classInfo == null) return null;
AnnotationInstance lraClassAnnotation = classInfo.classAnnotation(DotName.createSimple(LRA.class.getName()));
AnnotationInstance lraClassAnnotation = classInfo.declaredAnnotation(DotName.createSimple(LRA.class.getName()));
if (lraClassAnnotation != null) {
return lraClassAnnotation;
}
Expand Down

0 comments on commit 08ad2a0

Please sign in to comment.