You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by me...@apache.org on 2023/04/09 16:50:05 UTC

[myfaces] branch main updated: MYFACES-4598: Revert Quarkus reduce WARNING noise (#568)

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

melloware pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/main by this push:
     new 4b69fe830 MYFACES-4598: Revert  Quarkus reduce WARNING noise (#568)
4b69fe830 is described below

commit 4b69fe830b8518d53204d5b65b58f254bd53cd00
Author: Melloware <me...@gmail.com>
AuthorDate: Sun Apr 9 12:50:00 2023 -0400

    MYFACES-4598: Revert  Quarkus reduce WARNING noise (#568)
---
 .../extensions/quarkus/deployment/MyFacesProcessor.java  | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/MyFacesProcessor.java b/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/MyFacesProcessor.java
index 100c5c31d..4d75c815b 100644
--- a/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/MyFacesProcessor.java
+++ b/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/MyFacesProcessor.java
@@ -776,10 +776,7 @@ class MyFacesProcessor
             // register type
             reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, typeName));
             // and try to register the ClientProxy
-            if (shouldProxy(typeName))
-            {
-                reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, typeName + "_ClientProxy"));
-            }
+            reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, typeName + "_ClientProxy"));
         }
 
 
@@ -792,19 +789,10 @@ class MyFacesProcessor
             // register type
             reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, typeName));
             // and try to register the ClientProxy
-            if (shouldProxy(typeName))
-            {
-                reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, typeName + "_ClientProxy"));
-            }
+            reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, typeName + "_ClientProxy"));
         }
     }
 
-    boolean shouldProxy(String typeName)
-    {
-        return !(typeName.startsWith("java.lang") 
-                 || typeName.startsWith("java.util"));
-    }
-
     void collectPublicTypes(ClassInfo type, List<ClassInfo> publicTypes, CombinedIndexBuildItem combinedIndex)
     {
         if (type == null)