This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 523408b1b1d4590278a90eeb0996a9e21ff34caa
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Fri Jun 19 11:47:24 2020 +0100

    Remove unneccessary classes from unbanned reflective class list
---
 .../support/policy/deployment/PolicyProcessor.java |  3 ---
 .../component/netty/deployment/NettyProcessor.java | 22 ----------------------
 2 files changed, 25 deletions(-)

diff --git 
a/extensions-support/policy/deployment/src/main/java/org/apache/camel/quarkus/component/support/policy/deployment/PolicyProcessor.java
 
b/extensions-support/policy/deployment/src/main/java/org/apache/camel/quarkus/component/support/policy/deployment/PolicyProcessor.java
index 55fe82f..56bcd6e 100644
--- 
a/extensions-support/policy/deployment/src/main/java/org/apache/camel/quarkus/component/support/policy/deployment/PolicyProcessor.java
+++ 
b/extensions-support/policy/deployment/src/main/java/org/apache/camel/quarkus/component/support/policy/deployment/PolicyProcessor.java
@@ -49,9 +49,6 @@ class PolicyProcessor {
          */
         return new UnbannedReflectiveBuildItem(
                 "org.apache.camel.support.processor.DefaultExchangeFormatter",
-                "org.apache.camel.component.pdf.PdfConfiguration",
-                "org.apache.camel.component.netty.NettyConfiguration",
-                
"org.apache.camel.component.netty.NettyServerBootstrapConfiguration",
                 
"org.apache.camel.component.fhir.FhirUpdateEndpointConfiguration",
                 
"org.apache.camel.component.fhir.FhirOperationEndpointConfiguration",
                 "org.apache.camel.component.fhir.FhirConfiguration",
diff --git 
a/extensions/netty/deployment/src/main/java/org/apache/camel/quarkus/component/netty/deployment/NettyProcessor.java
 
b/extensions/netty/deployment/src/main/java/org/apache/camel/quarkus/component/netty/deployment/NettyProcessor.java
index f78a028..0dec328 100644
--- 
a/extensions/netty/deployment/src/main/java/org/apache/camel/quarkus/component/netty/deployment/NettyProcessor.java
+++ 
b/extensions/netty/deployment/src/main/java/org/apache/camel/quarkus/component/netty/deployment/NettyProcessor.java
@@ -16,37 +16,15 @@
  */
 package org.apache.camel.quarkus.component.netty.deployment;
 
-import java.util.Arrays;
-import java.util.List;
-
-import io.quarkus.deployment.annotations.BuildProducer;
 import io.quarkus.deployment.annotations.BuildStep;
 import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
-import org.apache.camel.component.netty.NettyConfiguration;
-import org.apache.camel.component.netty.NettyEndpoint;
-import org.apache.camel.component.netty.NettyServerBootstrapConfiguration;
 
 class NettyProcessor {
 
     private static final String FEATURE = "camel-netty";
 
-    private static final List<Class<?>> NETTY_REFLECTIVE_CLASSES = 
Arrays.asList(
-            NettyConfiguration.class,
-            NettyServerBootstrapConfiguration.class,
-            NettyEndpoint.class);
-
     @BuildStep
     FeatureBuildItem feature() {
         return new FeatureBuildItem(FEATURE);
     }
-
-    @BuildStep
-    void registerForReflection(BuildProducer<ReflectiveClassBuildItem> 
reflectiveClass) {
-        for (Class<?> type : NETTY_REFLECTIVE_CLASSES) {
-            reflectiveClass.produce(
-                    new ReflectiveClassBuildItem(true, true, type));
-        }
-    }
-
 }

Reply via email to