Description
When running myfaces with WELD 2.0 I see the following warnings:
WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.cdi.view.ViewScopeBeanHolder is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.flow.cdi.FlowScopeBeanHolder is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.PushContextFactoryBean is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.flow.cdi.FlowBuilderFactoryBean is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.cdi.config.FacesConfigBeanHolder is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.WebsocketChannelTokenBuilderBean is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.WebsocketSessionBean is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.WebsocketViewBean is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.push.cdi.WebsocketApplicationBean is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.cdi.JsfApplicationArtifactHolder is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.cdi.model.FacesDataModelClassBeanHolder is deprecated from CDI 1.1!
[WARNING ] WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.apache.myfaces.flow.cdi.FlowScopeBeanHolder is deprecated from CDI 1.1
We should clean this up by using BeforeBeanDiscover.addAnnotatedType(AnnotatedType<?>, String id): https://javaee.github.io/javaee-spec/javadocs/javax/enterprise/inject/spi/BeforeBeanDiscovery.html#addAnnotatedType-javax.enterprise.inject.spi.AnnotatedType-java.lang.String-