You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The name MapFactoryInterface suggests that its implementations create maps, i.e. MapInterface instances.
However, it only promises to create vanilla containers, which makes it no more useful than the ContainerFactoryInterface which it extends.
WritableMapFactoryInterface has a similar problem.
Solution
⚠️ This may have unexpected consequences for consumers.
Change the return type of MapFactoryInterface#createContainerFromArray() to MapInterface.
Change the return type of WritableMapFactoryInterface#createContainerFromArray() to WritableMapInterface.
The text was updated successfully, but these errors were encountered:
Problem
The name
MapFactoryInterface
suggests that its implementations create maps, i.e.MapInterface
instances.However, it only promises to create vanilla containers, which makes it no more useful than the
ContainerFactoryInterface
which it extends.WritableMapFactoryInterface
has a similar problem.Solution
MapFactoryInterface#createContainerFromArray()
toMapInterface
.WritableMapFactoryInterface#createContainerFromArray()
toWritableMapInterface
.The text was updated successfully, but these errors were encountered: