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) (helidon-io#8417)
  • Loading branch information
Captain1653 authored and hrstoyanov committed Mar 12, 2024
1 parent 8740df5 commit cf08e0c
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 cf08e0c

Please sign in to comment.