melloware commented on code in PR #682:
URL: https://github.com/apache/myfaces/pull/682#discussion_r1524784165


##########
impl/src/main/java/org/apache/myfaces/cdi/util/CDIUtils.java:
##########
@@ -120,6 +135,17 @@ public static <T> T get(BeanManager beanManager, Type 
type, boolean create, Anno
         }
     }
 
+    private static String getBeanName(Bean<?> bean)
+    {
+        String name = bean.getName();
+        if (name != null)
+        {
+            return name;
+        }
+        String className = bean.getBeanClass().getSimpleName();
+        return Character.toLowerCase(className.charAt(0)) + 
className.substring(1);

Review Comment:
   These two lines are the only ones I am not sure about but @tandraschko will 
weigh in!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to