diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointImpl.java index f613a9ced97bbc..87cfa76bd3fedf 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointImpl.java @@ -37,7 +37,7 @@ public InjectionPointImpl(Type injectionPointType, Type requiredType, Set bean, Set annotations, Member javaMember, int position, boolean isTransient) { this.requiredType = requiredType; - this.qualifiers = Set.copyOf(qualifiers); + this.qualifiers = CollectionHelpers.toImmutableSmallSet(qualifiers); this.bean = bean; if (javaMember instanceof Executable) { this.annotated = new InjectionPointImpl.AnnotatedParameterImpl<>(injectionPointType, annotations, position,