-
Interfaces Interface Description com.google.inject.throwingproviders.ThrowingProvider useCheckedProvider
instead.
-
Classes Class Description com.google.inject.assistedinject.FactoryProvider useFactoryModuleBuilder
instead.com.google.inject.matcher.AbstractMatcher This class used to be useful to avoid implementingand()
andor()
yourself, but is no longer necessary now thatMatcher
implements these methods.com.google.inject.multibindings.MultibindingsScanner This functionality is installed by default. All references to this can be safely removed. This class will be removed in Guice 4.4
-
Methods Method Description com.google.inject.multibindings.MultibindingsScanner.asModule() This functionality is now installed by default. All references/installations can be eliminated.com.google.inject.multibindings.MultibindingsScanner.scanner() This method returns an empty scanner since the preexisting functionality is installed by default.com.google.inject.servlet.ServletScopes.continueRequest(Callable<T>, Map<Key<?>, Object>) You probably want to usetransferRequest
insteadcom.google.inject.spi.ModuleAnnotatedMethodScanner.prepareMethod(Binder, Annotation, Key<T>, InjectionPoint) Prefer overriding the overload that takes `Object moduleInstance` instead. If not overridden, that method will invoke this one to aid in backwards compatibility.com.google.inject.spi.ProviderInstanceBinding.getProviderInstance() UseProviderInstanceBinding.getUserSuppliedProvider()
instead.com.google.inject.throwingproviders.ThrowingProviderBinder.bind(Class<P>, Type) com.google.inject.util.Modules.combine(Module) there's no need to "combine" one module; just install it directly.com.google.inject.util.Modules.OverriddenModuleBuilder.with() there's no reason to use.with()
without any arguments.com.google.inject.util.Modules.override() there's no reason to useModules.override()
without any arguments.com.google.inject.util.Providers.guicify(Provider<T>) Marked as deprecated as a hint to users that calling this is unnecessary, because the provider is already a guice Provider.