Extending/Overloading Intentions?

I have a subclass of HashMap, in which I extend the api by adding a method putItem(). If, in a method, I create one of hash maps, add some entries using putItem() and then return it, an intention comes up telling me that the contents of the collection are queried but never updated. This makes sense, as the existing intention sees my hash map being made, but as it doesn't know about putItem(), it never sees any information being put into the collection.

I find this intention very useful, and I do not want to disable it. However, I would very much like to increase the scope of methods it knows about so that in this condition it will recognize that the collection is indeed being updated.

Any suggestions?

Thanks.

Please sign in to leave a comment.