Skip to content

Commit

Permalink
Merge pull request quarkusio#9229 from stuartwdouglas/aws-named-issue
Browse files Browse the repository at this point in the history
Use the named annotation from the class
  • Loading branch information
gsmet authored May 12, 2020
2 parents aec6bcb + 0339080 commit 048c674
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ List<AmazonLambdaBuildItem> discover(CombinedIndexBuildItem combinedIndexBuildIt
reflectiveClassBuildItemBuildProducer.produce(new ReflectiveClassBuildItem(true, false, lambda));

String cdiName = null;
List<AnnotationInstance> named = info.annotations().get(NAMED);
if (named != null && !named.isEmpty()) {
cdiName = named.get(0).value().asString();
AnnotationInstance named = info.classAnnotation(NAMED);
if (named != null) {
cdiName = named.value().asString();
}

ClassInfo current = info;
Expand Down

0 comments on commit 048c674

Please sign in to comment.