From 544150d6ddca3e939714ce38cfe2e92e2155a4d3 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Thu, 20 Apr 2023 11:07:45 +0200 Subject: [PATCH] Replace deprecated WildcardType.create with createUpperBound and createLowerBound --- .../io/quarkus/arc/processor/bcextensions/TypesImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/bcextensions/TypesImpl.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/bcextensions/TypesImpl.java index 1e7921dae5db8..097da7fc562c2 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/bcextensions/TypesImpl.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/bcextensions/TypesImpl.java @@ -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); }