IG: Contents of map are queried but never updated. Really?

Should this one be flagged by this inspection or not?

Map anotherMap = ...
SortedMap map = new TreeMap(anotherMap);
Iterator it = map.keySet().iterator();

Sascha

2 comments
Comment actions Permalink

No, it shouldn't be, but right now I'm not checking for that case. Good eye. Please submit a JIRA item, so I don't lose this one.

--Dave Griffith

0
Comment actions Permalink

Dave Griffith wrote:

Please submit a JIRA item, so I don't lose this one.


Done: http://www.jetbrains.net/jira/browse/IDEA-2775

Sascha

0

Please sign in to leave a comment.