Skip to content

Commit 6a63020

Browse files
committed
Don't allow null priorityAnnotation since consumers now pass it in instead of allowing it to be reflectively discovered.
1 parent 634b32b commit 6a63020

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

inject/src/main/java/io/avaje/inject/spi/DBeanContext.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ public <T> List<T> sortByPriority(List<T> list) {
106106

107107
@Override
108108
public <T> List<T> sortByPriority(List<T> list, final Class<? extends Annotation> priorityAnnotation) {
109-
if (priorityAnnotation == null) {
110-
// priority annotation not on the classpath
111-
return list;
112-
}
113109
boolean priorityUsed = false;
114110
List<SortBean<T>> tempList = new ArrayList<>(list.size());
115111
for (T bean : list) {

0 commit comments

Comments
 (0)