Skip to content

Commit

Permalink
Merge pull request #32279 from franz1981/set_of
Browse files Browse the repository at this point in the history
Save creation of hashset and array to create an immutable set
  • Loading branch information
Sanne authored Mar 31, 2023
2 parents 4ba0807 + 6fdd9dc commit 8b8ca9f
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 8b8ca9f

Please sign in to comment.