From 6fdd9dcb834e406277b0dd30d513c5a33c9e70c2 Mon Sep 17 00:00:00 2001 From: franz1981 Date: Thu, 30 Mar 2023 21:10:52 +0200 Subject: [PATCH] Save creation of hashset and array to create an immutable set --- .../src/main/java/io/quarkus/arc/impl/InjectionPointImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f613a9ced97bb..87cfa76bd3fed 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,