tandraschko commented on code in PR #682: URL: https://github.com/apache/myfaces/pull/682#discussion_r1530439380
########## 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: i also wonder about this one - why is this required? If bean.getName is null, its not a named bean - why would need it then? -- 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: dev-unsubscr...@myfaces.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org