Skip to content

Commit

Permalink
Replace deprecated WildcardType.create with createUpperBound and crea…
Browse files Browse the repository at this point in the history
…teLowerBound
  • Loading branch information
rsvoboda committed Apr 20, 2023
1 parent dcc26c1 commit 544150d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ private ParameterizedType parameterizedType(DotName genericTypeName, Type... typ

@Override
public WildcardType wildcardWithUpperBound(Type upperBound) {
org.jboss.jandex.WildcardType jandexType = org.jboss.jandex.WildcardType.create(((TypeImpl<?>) upperBound).jandexType,
true);
org.jboss.jandex.WildcardType jandexType = org.jboss.jandex.WildcardType
.createUpperBound(((TypeImpl<?>) upperBound).jandexType);
return new WildcardTypeImpl(jandexIndex, annotationOverlays, jandexType);
}

@Override
public WildcardType wildcardWithLowerBound(Type lowerBound) {
org.jboss.jandex.WildcardType jandexType = org.jboss.jandex.WildcardType.create(((TypeImpl<?>) lowerBound).jandexType,
false);
org.jboss.jandex.WildcardType jandexType = org.jboss.jandex.WildcardType
.createLowerBound(((TypeImpl<?>) lowerBound).jandexType);
return new WildcardTypeImpl(jandexIndex, annotationOverlays, jandexType);
}

Expand Down

0 comments on commit 544150d

Please sign in to comment.