Re:Immutable annotations for Java
by dorgo on Monday July 20, 2015 @03:29AM
(#9914476)
Then a Map would be a ReadableMap, but a ReadableMap wouldn't be a Map. If a method expects a Map, you would't be able to put a ReadableMap (or a WriteableMap) into it.
My solution so far is to avoid to return a map or to expect a map as argument.
[ Parent
| on HN ]
There are no comments on this comment yet.