Possible Duplicate:
What are the reasons why Map.get(Object key) is not (fully) generic
This method and a number of other methods in the Map interface are not generic. Almost anywhere a key value is expected as a parameter, it accepts Object instead, namely remove, get and containsKey.
Any idea as to why they made this decision. My assumption is that it was done to support legacy code, but to me, I think that is a weak position.
Can anyone provide me a specific reason why it would be preferable to accept Object here instead of KeyType.