Skip to content

Commit

Permalink
Merge pull request #16360 from geoand/#16359
Browse files Browse the repository at this point in the history
Ignore abstract classes in Filter hierarchy
  • Loading branch information
geoand authored Apr 8, 2021
2 parents e05d92a + ee723bc commit 6beb4c9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jboss.resteasy.reactive.common.processor.scanning;

import java.lang.reflect.Modifier;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
@@ -84,6 +85,9 @@ public static void scanForIOInterceptors(ResourceInterceptors interceptors, Inde
private static <T> void handleDiscoveredInterceptor(
ApplicationScanningResult applicationResultBuildItem, InterceptorContainer<T> interceptorContainer, IndexView index,
ClassInfo filterClass) {
if (Modifier.isAbstract(filterClass.flags())) {
return;
}
ApplicationScanningResult.KeepProviderResult keepProviderResult = applicationResultBuildItem.keepProvider(filterClass);
if (keepProviderResult != ApplicationScanningResult.KeepProviderResult.DISCARD) {
ResourceInterceptor<T> interceptor = interceptorContainer.create();

0 comments on commit 6beb4c9

Please sign in to comment.