On Thu, Aug 29, 2019 at 9:36 AM Daniel Kinzler <dkinz...@wikimedia.org>
wrote:

>
> Narrow interfaces help with that. If we had for instance a cache interface
> that
> defined just the get() and set() methods, and that's all the code needs,
> then we
> can just provide a mock for that interface, and we wouldn't have to worry
> about
> WANObjectCache or its final methods at all.
>
>
I think this is the right solution, forbidding one feature of the language
(final) because of the current design of WANObjectCache seems going too far
in my opinion.

--
David Causse
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to