Skip to content

Commit

Permalink
Remove okhttp related processing in KubernetesClientProcessor
Browse files Browse the repository at this point in the history
With quarkusio#30480, the k8s client no longer uses OkHttp
  • Loading branch information
geoand committed Feb 2, 2023
1 parent 58ae681 commit 2bc2503
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public class KubernetesClientProcessor {
private static final DotName VISITABLE_BUILDER = DotName.createSimple(VisitableBuilder.class.getName());
private static final DotName CUSTOM_RESOURCE = DotName.createSimple(CustomResource.class.getName());

private static final Predicate<DotName> IS_OKHTTP_CLASS = d -> d.toString().startsWith("okhttp3");
private static final DotName JSON_FORMAT = DotName.createSimple(JsonFormat.class.getName());
private static final String[] EMPTY_STRINGS_ARRAY = new String[0];

Expand Down Expand Up @@ -114,8 +113,7 @@ public void process(ApplicationIndexBuildItem applicationIndex, CombinedIndexBui
findWatchedClasses(CUSTOM_RESOURCE, applicationIndex, combinedIndexBuildItem, watchedClasses, 2,
false);

Predicate<DotName> reflectionIgnorePredicate = ReflectiveHierarchyBuildItem.DefaultIgnoreTypePredicate.INSTANCE
.or(IS_OKHTTP_CLASS);
Predicate<DotName> reflectionIgnorePredicate = ReflectiveHierarchyBuildItem.DefaultIgnoreTypePredicate.INSTANCE;
for (DotName className : watchedClasses) {
if (reflectionIgnorePredicate.test(className)) {
continue;
Expand Down

0 comments on commit 2bc2503

Please sign in to comment.