The following deprecated APIs have been removed in CDI 4.0:
Bean.isNullable():
Deprecated in CDI 1.1. Implementations can safely always return false. Removed without replacement.BeanManager.fireEvent():
Deprecated in CDI 2.0. Replaced by calling BeanManager.getEvent(), and then calling Event.fire() on the returned Event.BeanManager.createInjectionTarget():
Deprecated in CDI 1.1. Replaced by calling BeanManager.getInjectionTargetFactory(), and then calling InjectionTargetFactory.createInjectionTarget() on the returned InjectionTargetFactory.BeforeBeanDiscovery.addAnnotatedType(AnnotatedType):
Deprecated in CDI 1.1. Replaced by BeforeBeanDiscovery.addAnnotatedType(AnnotatedType, String).This rule has an automated fix to update the use of the methods mentioned earlier. Copy the custom configuration to your application build file to enable the fix automation.
For more Jakarta 10 migration information, see Differences between Jakarta Contexts and Dependency Injection 4.0 and 3.0.