We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a63020 commit 47f4d96Copy full SHA for 47f4d96
inject/src/main/java/io/avaje/inject/spi/DBeanContext.java
@@ -246,7 +246,7 @@ private static class SortBean<T> implements Comparable<SortBean<T>> {
246
int initPriority(Class<? extends Annotation> priorityAnnotation) {
247
// Avoid adding hard dependency on javax.annotation-api by using reflection
248
try {
249
- Annotation ann = bean.getClass().getAnnotation(priorityAnnotation);
+ Annotation ann = bean.getClass().getDeclaredAnnotation(priorityAnnotation);
250
if (ann != null) {
251
int priority = (Integer) priorityAnnotation.getMethod("value").invoke(ann);
252
priorityDefined = true;
0 commit comments