Skip to content

Commit

Permalink
Save creation of hashset and array to create an immutable set
Browse files Browse the repository at this point in the history
  • Loading branch information
franz1981 authored and holly-cummins committed Apr 20, 2023
1 parent 3688a98 commit 681afc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public InjectionPointImpl(Type injectionPointType, Type requiredType, Set<Annota
InjectableBean<?> bean, Set<Annotation> 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,
Expand Down

0 comments on commit 681afc7

Please sign in to comment.